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": […]
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> […]
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 […]
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? […]
-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 […]
10 class Base { public: class FirstBase { friend class Base; int x = 10; }; class SecondBase : public FirstBase { public: SecondBase() : FirstBase() {} void t() { std::cout << FirstBase::x; } }; }; This code compiles and works, but I don’t understand why it works. Can explain or cite sources to read? […]
-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 […]
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 […]
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 […]