Questions

  • How to run oauth logic before an action?

    0 I have a number of actions that interact with a REST API which were generated using the “import from OpenAPI” function. One of those actions is a ‘v1/token’ for oauth for the other actions. Whats the most elegant way to use this action before the other actions to ensure I have the correct ‘accessToken’ […]

  • How can I use the IN filter with an Amplify GraphQL query?

    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’: […]

  • Date and Json in type definition for graphql

    60 Is it possible to have a define a field as Date or JSON in my graphql schema ? type Individual { id: Int name: String birthDate: Date token: JSON } actually the server is returning me an error saying : Type “Date” not found in document. at ASTDefinitionBuilder._resolveType (****node_modulesgraphqlutilitiesbuildASTSchema.js:134:11) And same error for JSON… […]

  • Invalid datetime format. […] The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value

    -1 Here is info about our technical development environment : • .NET 6 • C# 10 • Hasura GraphQL v2.6.2-pro.1 • Micrsoft SQL server 2019 • Visual Studio 2022 • "GraphQL" version="7.3.1" Proxy • "GraphQL.Client" version="5.1.1" Proxy • "GraphQL.Client.Serializer.Newtonsoft" version="5.1.1" Proxy I have application code that Converts integer-based Unix timestamp into a C# DateTimeOffset I […]

  • 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 […]