Questions

  • How to load rust struct vector data into GraphQL for query usage? OutputType error

    0 After successfully creating a sample Rust+GraphQL project using async-graphql and axum and visualizing something in the playground, the time has come to actually use data for queries. I am using this for schema: let schema = Schema::build( Query, EmptyMutation, EmptySubscription ) .data(user_data) .finish(); where Query is: pub(crate) struct Query; where user_data is: pub struct […]

  • Provider not found on operation “collection_query”

    0 I am trying to use Doctrine with API Platform graphql in symfony application. I am using Postgres for database. I have two entities viz WallPost and WallPostLikes with OneToMany Relationship. That means one wall post will have many likes. While querying wall posts, I am also trying to retrieve all the likes for each […]

  • NEW: Semrush Backlinks

    Greetings This is Mike Johnson Let me show you our latest research results from our constant SEO feedbacks that we have from our plans: SEMRUSH Backlinks The new Semrush Backlinks, which will make your letslearngraphql.com SEO trend have an immediate push. The method is actually very simple, we are building links from domains that have […]

  • Graphql : Get parent’s parent source – getSource() in graphql java

    0 Let say I have following schema type Org { vp: Person! employees: [Person!]! } type Person { id: ID! name: String! grade: String! @auth } I have auth directive implemented in DGS as below @DgsDirective(name = "auth") public class PrincipleAuthorizationDirective implements SchemaDirectiveWiring { @Override public GraphQLFieldDefinition onField(SchemaDirectiveWiringEnvironment<GraphQLFieldDefinition> environment) { GraphQLFieldDefinition field = environment.getElement(); GraphQLFieldsContainer […]

  • GraphQL Federation where two services share data of a single shared schema

    0 Really like the GraphQL Federation concept, where a gateway joins the data for clients. For example, imagine a library: Service A serves books from the library with title & ISBN property. Service B serves people, with a checkedOut list of books they have checked out, by ISBN. From what I can tell, though, there is […]

  • Cannot read properties of undefined (reading ‘isAuth’) in React and GraphQL application

    0 I’m encountering an error when trying to create a post in my React application using a GraphQL mutation. The error message is: { "errors": [ { "message": "Cannot read properties of undefined (reading ‘isAuth’)", "status": 500 } ], "data": { "createPost": null } } This suggests that the req.isAuth property is undefined when the […]

  • How to compare GraphQL query tree in java

    3 My spring-boot application is generating GraphQL queries, however I want to compare that query in my test. So basically I have two strings where the first one is containing the actual value and the latter one the expected value. I want to parse that in a class or tree node so I can compare […]

  • graphQLHttpClient Connection failure on Android, works on Windows

    0 I have a Maui app which works just fine when I run it with as a Windows Machine, but switching to Android I get a connection failure. Same dev machine, same back-end server. It is running on localhost port 5001. According to the server logs, it is not even hitting the Endpoint to submit […]

  • Getting 403 forbidden access is denied after adding reference to another project in same solution [closed]

    -1 Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 hours ago. This post was edited and submitted for review 1 hour […]

  • Error: Cannot find module ‘graphql/validation/rules/KnownArgumentNamesRule’

    26 When I run the command apollo client:codegen the following error comes up : Error: Cannot find module ‘graphql/validation/rules/KnownArgumentNamesRule’ Require stack: – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modules@apo llofederationdistcompositionvalidatepreNormalizationtagDirective.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modules@apo llofederationdistcompositionvalidatepreNormalizationindex.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modules@apo llofederationdistcompositionvalidateindex.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modules@apo llofederationdistcompositioncomposeAndValidate.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modules@apo llofederationdistcompositionindex.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modules@apo llofederationdistindex.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modulesapol lo-language-serverlibprovidersschemafile.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modulesapol lo-language-serverlibprovidersschemaindex.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modulesapol lo-language-serverlibprojectbase.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollonode_modulesapol lo-language-serverlibindex.js – C:UsersMinseoAppDataRoamingnpmnode_modulesapollolibcommandsclie ntcodegen.js – […]