35 I am currently loading the GraphQL schema using a separate .graphql file, but it is encapsulated within strings: schema.graphql const schema = ` type CourseType { _id: String! name: String! } type Query { courseType(_id: String): CourseType courseTypes: [CourseType]! } ` module.exports = schema Then using it for the apollo-server: index.js const { ApolloServer, […]
0 I am developing an application that requires dynamic schema using NestJS and the Apollo GraphQL module that comes integrated with it. To achieve this, I am creating type definitions and resolvers based on user configuration. Everything works correctly when I use the ApolloDriver, but when I switch to the ApolloFederationDriver, problems arise. Let me […]
0 I’m using Apollo error link to handle graphQL errors. In most cases, I would only want to catch the error and show an alert, which is something I can easily to when defining onError, but in one of my views I’m running a mutation call and there I would like to catch the error […]
0 I am trying to execute a simple GraphQL query in my Flutter project. The goal is to get a list of customers with a nested list of devices. However, the results are not being parsed properly and i found some inconsistency between appsync and my project appsync calls. I am pretty new to aws […]
0 Hi I am trying to make a GraphQL API using FastAPI and Strawberry and could not figure out how to do this. Essentially here is my problem: I have one model (call it Department) that has a one to many relationship with the Employee model, so that department.employees is the list of all employees […]
0 How many rows should GraphQL query return when limit = 0, all rows or 0 rows ? Looks like this is not mentioned anywhere. https://developers.facebook.com/docs/graph-api/results/ graphql Share Improve this question Follow asked 2 hours ago user2018791user2018791 1,1431515 silver badges2929 bronze badges 1 The API you reference is Facebook's "Graph API". While Facebook is also […]
1 I had this problem. I need to divide the values from one form into two parts and send them to one address. graphql mutation calc($applicationRecipientsFilter: ApplicationRecipientsFilterInput) { create(applicationRecipientsFilter: $applicationRecipientsFilter) { id city { id name } applicationType recipients } } hooks const { mutate } = useMutation(calc); const addNewNotification = useCallback( async (args) => […]
0 I’m trying to pass the date from the datepicker and timepicker but it always gives an invalid date error I already tried .year .month .day .hour. minute. DateTime.parse doesnt wor enter image description here I already tried .year .month .day .hour. .minute parse, toString nothing work import ‘package:datetime_picker_formfield_new/datetime_picker_formfield.dart’; import ‘package:flutter/material.dart’; import ‘package:get/get.dart’; import ‘package:horario/features/Date/presentation/controller/date_controller.dart’; […]
0 I am working on creating users on my wiki.js using graphql api and python’s request package. I am able to create a user normally(hard coded) but I want to use variables. Here is the code I tried: # we have imported the requests module import requests # defined a URL variable that we will […]