0 I have a Node application where I have generated typescript types from GraphQL schema. My service is going to receive GraphQL Object and attributes details in an API request. The service has to form a GraphQL query string and return in the response. For example, If the request is ‘Object.attribute = value’, then the […]
1 I have a graphql file with a date in ISO format. I would like to pass a variable instead of hard-coding the date. I would like to use Date.toISOstring() or some get current date method. GRAPHQL FILE let today = Date.toISOString() //or DateNow() query guide { tv { guide(date: "2022-08-10T00:00:00Z <-replace–${today}") { entries { […]
1 I am building golang graphql endpoint with graphql-go https://github.com/graphql-go/graphql Here is chunk of my resolver.go func GetRootMutation(db *gorm.DB, req *http.Request) *graphql.Object { rootMutation := graphql.NewObject(graphql.ObjectConfig{ Name: "RootMutation", Fields: graphql.Fields{ "send_otp_email": SendOtpEmail(db, req), }, }) return rootMutation } func SendOtpEmail(db *gorm.DB, req *http.Request) *graphql.Field { return &graphql.Field{ Type: graphqlGlobal.ResultType, Description: "Send OTP to user’s email.", […]
-1 A form in which you need to enter GitHub_login, after processing the form, display the github name and the list of repos. Example: Enter: dhh Output: David Heinemeier Hansson actioncable asset-hosting-with-minimum-ss1 bundler The server should process requests using GraphQL (https://github.com/rmosolgo/graphql-ruby). It should pull data from GitHub and process it. To get data from GitHub, […]
0 I have two graphql schemas that we can say one as admin and one as internal and i need to map each with a separate graphql endpoint as:- Schema – admin.graphqls, internal.graphqls /graphql/admin and /graphql/internal however the exposed configuration property we have in spring-boot-starter-graphql is a string so possible only one endpoint can be […]
0 Using below requests returns 429 status code, but when same request is used in curl, and by using Python http.client library, i get 200 status code and data. What can be issue where requests gives 429 but I get data through other clients and in curl url="www.xyz.co.in/graphql", headers={ "User-Agent": "CFNetwork/1485 Darwin/23.1.0", "Client-Info": "ios.com.expedia.booking,2023.45,external", "Content-Type": […]
0 I am using graphql in laravel project every thing work fine at localhost but when i deploy to server namecheap i faced this problime Target class [AppGraphQlTypesAdminCitiesType] does not exist. "exception": "IlluminateContractsContainerBindingResolutionException", I am using Postman for request to graphql this is my type <?php namespace AppGraphQlTypesAdmin; use AppModelsCities; use GraphQLTypeDefinitionType; use RebingGraphQLSupportType as […]
0 thank you for your time, my problem is that i want to return the data to the client immediately after subscribing. I know about the onConnect method, but it is called before JwtAuthGuard. What is the best way to do this? I was thinking of moving the authorization logic to onConnect. To better understand […]
2 I’ve built a Nestjs app with Prisma and GQL. I just changed computer (from a Mac to PC) and all of a sudden my login mutation seems to have stopped working, literally the only one… Here is some code: auth.resolver.ts: @Mutation((returns) => AuthenticatedUser) async login( @Context() { res }: Auth.GqlContext, @Args(‘payload’, { type: () […]
0 My API is written with TypeScript/Apollo and I am able to run queries/mutations on https://localhost:4000/graphql. My front-end is with Next.js and Apollo client. I use GraphQL Codegenerator to generate the client-side code I need. I am using: "@graphql-codegen/cli": "1.20.1", "@graphql-codegen/typescript": "1.20.2", "@graphql-codegen/typescript-operations": "1.17.14", "@graphql-codegen/typescript-react-apollo": "2.2.1", and my codegen.yml file is overwrite: true schema: "https://localhost:4000/graphql" […]