0 I have a spring boot GraphQL API and I want to consume it in another spring boot app using GraphQL Client. I am using spring boot version 3. when I execute mutate which works as data is added to the database, I am not able to figure out how to convert the received response […]
0 I am trying to write a resolver which gets the accounts belonging to a customer. The parent.accounts attribute is an array of account_ids. In the code below, I attempt to get an array of accounts for each customer. import Account from "../models/accounts.js"; import Customer from "../models/customers.js"; import { AccountInterface } from "../types/accounts.js"; import { […]
0 I am using @graphql-codegen/typescript to generate types for this graphql schema: type Book { title: String author: String comment: String } type Query { books: [Book] } Excerpt from the generated code: export type Book = { __typename?: ‘Book’; author?: Maybe<Scalars[‘String’][‘output’]>; comment?: Maybe<Scalars[‘String’][‘output’]>; title?: Maybe<Scalars[‘String’][‘output’]>; }; The TS type "Book" is the type used […]
1 Im kinda new to graphql but i tried my luck with this mini graphql api , but before getting into the point of this question i have some questions before: When using swapi api for example and more specific i want to fetch films , when i write the filmType GraphQLObjectType do i have […]
Hi there Just checked your letslearngraphql.com baclink profile, I noticed a moderate percentage of toxic links pointing to your website We will investigate each link for its toxicity and perform a professional clean up for you free of charge. Start recovering your ranks today: Professional linksprofile Clean up Service Regards Mike Arnold Hilkom Digital SEO […]
0 I am new to building with Gatsby and wordpress. when i run "gatsby develop", i get this error on my command line "Unable to connect to WPGraphQL, Either WPGraphQL is not active or there are some WordPress PHP filters in your site which are adding additional output to the GraphQL response. These may have […]
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, […]