Tag: graphql
-
graphql_flutter return LazyCacheMap, built_value deserializeWith JSON String, how to make them work together
4 graphql_flutter return LazyCacheMap, built_value deserializeWith JSON String, how to make them work together. I use graphql_flutter to fetch data, and response give the result data as LazyCacheMap. And using built_value for data model & data serialization, but since deserializeWith working with JSON String. What’s the best way to work with them together ? Should…
-
MySQL Database connection error for hasura cloud
0 I am using hasura cloud environment. For MySQL database, I am using MySQL workbench and created a database. I want to use this database in hasura environment. MySQL server is up and running on the port 3306. My JDBC Connection string is: jdbc:mysql://localhost:3306/employees?user=admin&password=password@123 After connecting, I got this error [ { "definition": "employees", "message":…
-
Mercurius-codegen error Cannot find name ‘_Service
0 I am implementing a graphql api subgraph using Mercuriusjs, @mercurius/federation and typescript by following their doc. But always getting error Here are some parts of my code. server.ts const app = Fastify(); const PORT = 4001; const buildContext = async (req: FastifyRequest, _reply: FastifyReply) => { return { authorization: req.headers.authorization, }; }; type PromiseType<T>…
-
Django – working example of graphene aiodataloader
0 I’ve been looking into using a DataLoader in Django to optimise Graphene resolvers. I have been having trouble finding a working example of this as it requires multi threading. Based on what I can tell, there is no longer a way to specify executors in the latest versions of GraphQL in python. Does anyone…
-
DVGA not accessible from apollo studio?
0 I am just trying out DVGA (https://github.com/dolevf/Damn-Vulnerable-GraphQL-Application) and I hosted the app on a EC2 and open port 5013 docker run -d -t -p 5013:5013 -e WEB_HOST=0.0.0.0 –name dvga dvga I understand DVGA enabled introspection by default and $ec2HOST:5013 is accessible from my browser. However, from apollo studio, URL $ec2HOST:5013/graphql is not accessible. why?…
-
Shopify Payment app graphQL endpoint authentication
-1 I am trying to create an offsite shopify payment app. Overall the authentication on GraphQL requests seems kinda confusing to me. Should there be any authentication token for graphQL request like PaymentSessionResolve. This question might not be appropriate for stackoverflow but I am kinda stuck. javascript node.js graphql shopify shopify-app Share Follow asked 1…
-
GraphQL error : Method not allowed error for GraphQL requests with Spring 3.1.1
-1 I have upgraded spring boot to 3.1.1 and I am getting 405 method not allowed for graphql call. I tried all the known options. pom.xml <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-graphql</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> class @Controller public class DemoGraphQLResolver { @QueryMapping(name = "phoneNumber") public List<Party> phoneNumber(@Argument String phoneNumber) { return phoneNumber; } } I have .graphqls…
-
How can I import a route file using Express?
0 Normally when I make a server I have no problem importing route files but I’m working on a project using GraphQL which requires me to include "type": "module", inside my package.json file. So when I try having this inside my app.js file const indexRouter = require("./routes/index"); It gives me this error. ReferenceError: require is…
-
WrappedComponent is undefined
1 I am stuck trying to implement graphql with react-apollo and graphcool. I am following this Tutorial My code with the request query looks like this : import React from ‘react’; import { graphql } from ‘react-apollo’ import gql from ‘graphql-tag’ const ALL_INSPECTIONS_QUERY = gql` # 2 query AllInspectionsQuery { allInspections { id date observation…