Questions

  • NextJS 13.5 causes graphql schema errors

    0 After updating to NextJS 13.5 I started seeing these errors when deployed on Vercel (but works fine locally): Error: Schema must contain uniquely named types but contains multiple types named "h". at new GraphQLSchema (/var/task/node_modules/.pnpm/[email protected]/node_modules/graphql/type/schema.js:219:15) My init code is pretty straightforward in the serverless function: const schema = buildSchemaSync({ authChecker: UserAuthority, resolvers: […] }); […]

  • AWS Newbie Dynamo DB Design Implementation

    1 Hi I am attempting to build a fintech app and am using a template I found here: https://github.com/aws-samples/aws-plaid-demo-app I am looking to modify the data base to better fit my needs and had a few questions about best practices for implementation before I start making major changes. The demo app seems to combine all […]

  • Custom GraphQL exceptions

    0 I’m trying to create a custom exception when GraphQL throws its owns. The default GraphQL exception response I got is (except for the fillings): { "errors": [ { "message": "Validation error of type WrongType: argument ‘inputLocals.localId’ with value ‘IntValue{value=7777800}’ is not a valid ‘Int’ – Expected value to be in the Integer range but […]

  • GraphQL validation error

    0 I am trying out relay-treasure hunt tutorial but getting the following error when I run npm start. I did update my schema by running npm run update-schema. Uncaught Error: GraphQL validation error “Cannot query field “game” on type “Query”.“ in file `/home/tharaka/My Projects/relay-treasurehunt/js/routes/AppHomeRoute.js`. Try updating your GraphQL schema if an argument/field/type was recently added. […]

  • Can I use nested properties as variables while using useQuery from Apollo and GraphQL?

    0 I created a MERN application using Graphql, and I’m trying to fetch using properties that are nested inside my data as variables. As an example, I have client and project models. Is it possible to fetch all the projects for a specific client by passing the client ID when fetching the projects with useQuery. […]

  • Why does C++ have no std::invocable_r concept?

    11 C++20 added concepts, and the standard library includes quite a few of them. One concept in particular caught my eye: std::invocable which validates that a functor can be invoked with a set of arguments. std::invocable is just syntactic sugar for std::is_invocable. However, the standard library further defines std::is_invocable_r which tests whether a functor can […]

  • How does GraphQl handle conflicting operation names?

    0 Working on a large codebase, I came across 2 exposed graphql mutations with the same name. To my understanding, these should give an error when generating the graphql schema, yet the site is perfectly functional. Both these mutations have the same method arguments as well. I want to know what are the rules on […]

  • GraphQL Server unreachable

    0 I am trying to create serverless azure function with graphql in visualstudio code. I am following the below tutorial Build Serverless API with GraphQL and Azure— Part I After starting the application, i see the error attached in the browser. unable to execute query because of the error. Tried with the embed sandbox on […]

  • Curl graphql query to insert with html character

    0 I need insert in Shopify from CURL with graphql a html traslation but not accept "<" character I try with < < but nothing.. {"query": "mutation CreateTranslation($id: ID!, $translations: [TranslationInput!]!) { translationsRegister(resourceId: $id, translations: $translations) { userErrors {message field} translations {key value locale} } }","variables": {"id": "gid://shopify/Product/myid","translations": [{"key": "body_html","value": "<p>La Camicia da Uomo in […]

  • Trying to run Login graphql query(Magento 2) in jmeter with graphql http request but request is not being sent properly and results in 500

    0 Below is the query I am trying to run to generate customer token. Can somebody help me out? Query runs successfully in Postman. mutation Login($email: String!, $password: String!) { generateCustomerToken(email: $email, password: $password) { token customer { …CustomerFragment } } } fragment CustomerFragment on Customer { email firstname lastname mobilenumber user_source pushnotification group_id is_subscribed […]