Category "graphql"

Why doesn't GraphQL accept this scalar argument type, instead complaining "argument type must be Input Type but got: undefined"?

I have export const getPicture = { type: GraphPicture, args: { type: new GraphQLNonNull(GraphQLInt) }, resolve(_, args) { return

How to disable introspection queries with AWS appsync (GraphQL)?

With the compliance we need to remove introspection queries in production for AppSync endpoints. What is the best way to disable introspection queries with AppS

GraphQL : Not Getting EF Related objects after implementing Types

For background, I am following the tutorial here: https://www.youtube.com/watch?v=HuN94qNwQmM . As the code is too long I am putting that in git https://github.

GraphQL LSP with CoC + Neovim

I'm trying to setup a GraphQL language server for use within NVIM for linting, through CoC (Conquer of Completion). I've installed the LSP from GraphQL here but

using req.headers.authorization gives Network error unable to reach server We could not introspect your endpoint graphQL Context failed: invalid token

I get the token from the login mutation and put it in the headers, but graphql server gives an error when trying to fetch that token using: const auth = req.he

AssertionError at /graphql/ Query fields must be a mapping (dict / OrderedDict) with field names as keys or a function which returns such a mapping

I am new to django and graphql, I am trying use graphql in django using the the instructions given in this site. https://docs.graphene-python.org/projects/djan

How to use 'Decimal' as a field type in GraphQL schema?

I want to use Decimal as a type for latitude & longitude field in my GraphGL schema. But GraphQL provides only Float and Int. Is there is any package to sol

Web socket problem when adding subscriptions in URQL client

I am using URQL Client with Apollo server, now I am trying to handle subscriptions on URQL client, but I can't seem to make the web socket work. Hope someone ca

How can I use redux and graphql with apollo client in the same react app?

I'm working on a project, and I'm using apollo/client, graphql in react, and for the global state management, I have to use redux. I'm quite sure I'll have to h

Cannot read properties of undefined (reading 'bind') useQuery

I have this code right here import React from "react"; import { useQuery } from "@apollo/react-hooks"; import gql from "graphql-tag"; const FETCH_POSTS_QUERY

Apollo `useMutation()` stuck loading inside Next.js component

The following form component in Next.js submits without errors but never completes the mutation. Instead it get's stuck in the loading state. import React, { us

GraphQL error: Field error: value is not an instance of Date

After I've installed redis-server and graphql-redis-subscriptions I receive the following error [GraphQL error]: Message: Field error: value is not an instance

Cloudfront cache with GraphQL?

At my company we're using graphql for production apps, but only for private ressources. For now our public APIs are REST APIs with a Cloudfront service for ca

Graphql and round trips. Is this just an ios app issue?

I'm taking another look at graphql, and I'm trying to understand why saving round trips is a benefit to developers. Is the cost of making a request so expensive

Unable to resolve signature of property decorator when called as an expression

import { isEmail, isEmpty, isPhoneNumber, Length } from "class-validator" import { Field, InputType } from "type-graphql"; @InputType() export class RegisterIn

Update not working on newly added column in GraphQL

I created new column in MySQL db i.e. otp and trying to update this by using below Mutation but it's not working, however same function updating all other colum

How to infer types from an imported file in Typescript

I have a tricky Typescript problem I can't seem to solve. I would like to infer values based on a generic. However, the catch is the inferred types needs to com

Using gRPC and/or GraphQL for microservice architecture

At my company we're about to set up a new microservice architecture, but we're still trying to decide which protocol would be best for our use case. In our case

What does GraphQL do with the return value from a resolver?

I recently started learning GraphQL and I've discovered a situation that I'm unable to explain. Take the following example var {ApolloServer, gql} = require("ap

I have a graphQL query and wanted to convert it GraphQL Transformer v1 to v2

I was working on an existing project using amplify with GraphQl API. The query shows issues with @Key as Your GraphQL Schema is using "@key" directive from an o