0 I am working on a GraphQL mutation to create a project with associated phones and their parts, in other words relationship between is so: Phone can have multiple parts. I have defined a schema for querying phones along with their parts. However, I am encountering an error when trying to create a project with […]
0 I have a rest api written in typeScript and one of my downstream API is in Graphql. I am using graphql-request to consume the downstream graphql api. Version in package.json "graphql": "^16.6.0", "graphql-request": "^6.1.0", and my code is import { GraphQLClient, gql } from ‘graphql-request’ export const getUser = async (authToken: AuthToken) => { […]
0 In my project I’m updating to Node 18 and also converting from commonjs to esm. When I run the Jest tests I’m getting this error TypeError: request.mockResolvedValue is not a function In the following file but as you see the jest.mock()is on top of the scope as per documentation and also what I saw […]
0 When using GraphiQl how can I make comment’s in the variable section? Is it even possible? For example I can make comment’s in the query section using # like: query ProductVariants($quantityPro: Int!, $quantityVar: Int!) { products(first: $quantityPro) { edges { node { id # Title of the product title variants(first: $quantityVar) { edges { […]
0 Hi I have a graphql Response after Mutating {{ "carCreate": { "car": { "id": "TestId" } } }} I want to Desealize it I am using The following Code var graphQlClient = new GraphQLHttpClient(AppConfig.GraphQlUrl, new NewtonsoftJsonSerializer()); I have tried to resolve with the following code var response = await graphQlClient.SendMutationAsync<CarCreate>(request); My Created Model is […]
7 Static lambda’s introduced in c# 9 allow us to mark a lambda expression as static to prevent it from capturing instance state. However when you check the .Target property on the lamda it is still set, which is different to when you set an Action to a static method which has no target. Action […]
30 I have a client-server setup, in which the client(create-react-app) runs on localhost:3000 and the server is an express server which is built on node and I’m attempting to build graphql schema-resolvers setup. I’m able to import .graphql files on the server, however, on the client side, I’m using this setup by graphql-tools. When I’m […]
0 I don’t understand AWS Authorization yet. I’m getting this error. GraphQLAPI – ensure credentials error No Cognito Identity pool provided for unauthenticated access I thought by providing an API key this would just work like when you request from any other API. This is my schema: type art @model @auth( rules: [ { allow: […]
0 I have a problem with a circular dependency in a GraphQL model. I’m using Nestjs Graphql MongoDb Mongoose ad I have 3 entities. @ObjectType() @Schema({ timestamps: true }) export class User { @Field(() => ID) _id: string; @Field({ nullable: true }) @Prop({ nullable: true, unique: true }) pseudoDiscord?: string; } @ObjectType() @Schema({ timestamps: true […]