0 This is my codegen config: ‘generated/graphql-sdk.ts’: { config: { rawRequest: true }, plugins: [ "typescript", "typescript-graphql-request", "typescript-operations", { ‘fragment-matcher’: { apolloClientVersion: 3, module: "es2015", useExplicitTyping: false } } ] }, For some reason the generated graphql-sdk doesn’t import GraphQLError causing the typing error, I end up needing to add it in manually. This only […]
0 In NestJS and GraphQL while using Bcrypt I had to use it with promise like below async getUser(email: String, password: String) { let user: User[] | User | null = await this.userModel.find({ email }); user = user.length && user[0]; if (user) { return bcrypt .compare(password, user.password) .then((res: any) => { if (res) { return […]
0 so I had this problem for a while now and its driving me crazy. There was one answer on here however it did not help at all. So I am here to post my code to see if someone would be able to discern my stupidity. Login component: import React, { useState, useCallback, useEffect […]
0 I am using artillery node JS based tool for performance testing with yml based scenario. I have installed all the plugin library I am able to run artillery test But I am not able to see logs for what is wrong in my graph ql request and what is response. I tried to set […]
0 I’m trying to call my API but it keeps giving me 400 Error request with the error of: message: "Unknown argument "bookId" on field "book" of type "Explore"." I’ve just read the documentation of Apollo graphql and tried to fetch my data the way it said with variables and args, and it’s in my […]
6 From this Haskell Cafe post, and borrowing some code examples from jyp, we can construct a simple PHOAS evaluator in Haskell as: {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} import Data.Char data Term v t where Var :: v t -> Term v t App :: Term v (a -> b) -> Term […]
-1 I’m using graphql in Vue and I came up with this problem! This is my code for calling graphql in store: async fetchBookContent({ commit }, data) { let token = data.token let bookId = data.bookId const ALL_BOOKS_QUERIES = gql` query { book(args:{token:${token},bookId:${bookId}}){ information{ name } } } ` const { result } = useQuery(ALL_BOOKS_QUERIES) […]
0 i have deployed asp.net in docker on ec2 instance ECS, with load balancer controller weatherforecast working corectly hotchocolate graphql UI doesnt work on aws, on localhost docker works fine. I test on postman, and works fine, schema fetched. Can you help with aws settings, for graphql working My actual program.cs builder.Services.AddGraphQLServer().AddQueryType<GraphQls>(); builder.Services.AddCors( options => […]
0 I have the following graphql. input UpdateStudentInput { name: String motherName: String birthDate: String gender: Gender email: String password: String avatar: String } And I have the following mutation: updateStudent(updateStudentInput: UpdateStudentInput!, studentId: String): Student! but when I try to mutate I get a validation error : mutation { updateStudent(updateStudentInput: { name: "Abner Matheus Gomes […]