0 I am using Gatsby and its GraphQL database. I am noticing I am duplicating a lot of GraphQL fragments like this on multiple pages. Here is an example of two queries: query Page1 { pageData: page1Data { mainContent { …Fragment1 …Fragment2 …Fragment3 …Fragment4 …Fragment5 } } } query Page2 { pageData: page2Data { mainContent […]
3 I am learning GraphQL with Node.js and I am currently using graphql-yoga as a GraphQLServer. Now, I want to seperate Type Definitions and Resolvers so I have used schema.graphql and in there I have all my types defined but now I have no Idea how to use that file as typeDefs in GraphQL Server. […]
0 I was given a new task and I have to debounce the input value to prevent a backend request on each keystroke and on the other hand CollectionsAutocomplete should have an internal useState with an input value, that is linked to the generalQuery variable. Right now I was able to add the internal useState […]
1 The bounty expires in 5 days. Answers to this question are eligible for a +100 reputation bounty. Benoit Cuvelier wants to draw more attention to this question. I have a problem on a SpringBoot (3.2.0) application that uses GraphQL with spring-boot-starter-graphql. I have several annotated controllers that contain some @SchemaMapping, @QueryMapping and @MutationMapping. For […]
-2 How do I solve the following issue in my Astro project: I can request the page content data for various pages from my GraphQL endpoint. I am using Apollo Client for this. Using the following query as an example: query Page($target: String!) { page(target: $target) { id type content { …on PageOne { id […]
4 GraphQL is well-known for its easy to maintain backward-compatibility of APIs defined with it. You’re supposed to just add new fields/types every time you need them and never remove old ones, only mark them with @deprecated directive. Thus, your server could evolve independently of its clients versions. However, I have a quite opposite problem: […]
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 […]
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 […]
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 […]
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 […]