Questions

  • getServerSideProps not updating until Nextjs server restart

    0 My NextJS application is build with WPGraphQl and fetching query using getServerSideProps and apollo client. at first i host in vercel and it works properly but when i deploy it to my hosting it doesn’t pull / fetch the new updated data that i have changed from wordpress dashboard unit i reset my server. […]

  • Graphql Inner and Left Join

    1 We are using Apollo Router + Netflix DGS to build federated graphql services. Suppose that we have a common relational database right now for books and authors, but want to move towards a microservice architecture, where books and authors are stored separately in their own database. Suppose that I have the following graphql schema: […]

  • Using batchDelegateToSchema with Schemas Containing Union Type in GraphQL Tools

    0 I’m working on a GraphQL project where I have multiple schemas, and one of the schemas includes a Union type (Site) which can represent different types, such as PhysicalSite and WaitingRoom. I need to use batchDelegateToSchema to efficiently resolve the ‘sites’ field on the ‘Study’ type, which returns a SitesConnection that includes the Site […]

  • How to correctly use the IN filter with graphql?

    0 I’m trying to fetch multiple transactions with an array of IDs but i might do something wrong and i’m facing the following error : ERROR GraphQL Error: [ { path: null, locations: [ [Object] ], message: "Validation error of type WrongType: argument ‘filter.id’ with value ‘ObjectValue{objectFields=[ObjectField{name=’id’, value=ObjectValue{objectFields=[ObjectField{name=’in’, value=VariableReference{name=’ids’}}]}}]}’ contains a field not in ‘ModelIDInput’: […]

  • value from getServerSideProps not updating until Nextjs server restart

    1 I thought with getServerSideProps,data will updating whenever page is reload.But in this case , it doesn’t. In my case, if admin enter this page, it will display a button to edit product. const productDetail: NextPage<Props> = ({ product }) => { //if admin enter this page <AdminCreateOrEditPrice product={product}/> //if user enter this page //display […]

  • Backend stack with microservice architecture

    0 We migrate to microservice architecture. Well, I understand a lot of principles like one service – one db and it is a not a problem, we search a problems in our architecture before realization. I want to create api-gateway with graphql and subgraph for every services like: tasks, orders, clients etc. P.S. Sorry I […]

  • Amplify API GraphQL – Unable to query from aws console

    0 I have deployed a new GraphQL private API to my aws console. While I am trying to run the query from aws console, I am getting below error Cannot read properties of undefined (reading ‘data’) Here is my query: query MyQuery { listData(limit: 10) { nextToken } } amazon-web-services graphql Share Improve this question […]

  • Invariant Violation: Encountered an error trying to infer a GraphQL type for: `tags___NODE`

    0 I am new to Gatsby. I’m creating a blog site using Gatsby and Contentful as CMS. On creating a field ‘timeToRead’ I’m getting an error as ERROR #11321 API.NODE.EXECUTION "gatsby-source-contentful" threw an error while running the sourceNodes lifecycle: _node$fields.includes is not a function However whenever I clear cache and rebuild the appliction it works […]

  • Import specific GraphQL fragments?

    0 I have a fragment in a file that contains a lot of other fragments. file.gql #import "./fragment.gql" query Query { …Fragment } fragment.gql fragment Fragment { … } …other fragments here Doing this causes an error because of the unused fragments. Is it possible to import just that one fragment? Or do I seriously […]

  • How to represent a map or object with key-value pairs in GraphQL?

    2 How can I query for the following object? { result: { ‘1’: { ^^^ these are dynamic keys, never constant id: ‘id1′, }, ’20’: { id: ‘id2’, }, ‘300’: { id: ‘id3′, }, } } I know that I can define the result object fairly simply, if it wasn’t a key-value pair object. const […]