Questions

  • Unknown argument “hasNextPage” on field “pageInfo” GraphQL

    0 How to implement pagination for graphQL Query? I keep receiving: "message": "Unknown argument "hasNextPage" on field "pageInfo" of type "Core_EventPeopleConnection"." query myquery($viewId: ID!,$hasNextPage: Boolean!, $endCursor: String!){ Core_eventPeopleListView(viewId: $viewId){ id people{ pageInfo(hasNextPage: true,endCursor: $endCursor){ hasNextPage endCursor } nodes{ firstName lastName jobTitle organization websiteUrl } } } } Variables: { "viewId":"RXZlbnRWaWV3XzMyMTY1Mw==", "endCursor": "WyJhZ2Fyd2FsIiwic2hydXRpIiwiUlhabGJuUlFaVzl3YkdWZk1UVXhPREkzTlRVPSJd", "hasNextPage": true } […]

  • Generate Graphql queries with AI

    0 I’m trying to create a model that generates the GraphQL query for my own GraphQL introspection schema based on user input. I’ve tried fine-tuning, but teaching it multiple cases is quite tedious, and my schema is extensive with many fields and arguments. The model should analyze the user’s input (which may not explicitly reference […]

  • Graphql library helper to connect to external endpoint

    0 For a project I have to do some requests in PHP to a GraphQL endpoint. I’m familiar with Graphql to build query’s. The most of the project is build in node.js, where I use axios to handle the requests. But in PHP I couldn’t figure it out, it seems I’m having problems setting up […]

  • Is embedding an authenticated user preferences object into another object in GraphQL a common pattern?

    0 Let’s say I have the following 3 GraphQL types/objects. type Post { id: ID! title: Strings! author: User! } # composite unique key (postId & userId) type UserPostVote { post: Post! user: User! value: Int! # -1 or 1 } type User { id: ID! username: String! } Now the frontend wants to know […]

  • Installing vendor library using composer

    0 I’m trying to use the https://github.com/webonyx/graphql-php/ library to make graphql requests.. But for some reason it doesn’t work, and I can’t figure out why. I’m using this command to install: composer require webonyx/graphql-php Vendor folder with content + composer.json / composer.lock appears in the project folder. When I try a simple code like: <?php […]

  • Whitehat SEO for letslearngraphql.com

    Howdy I have just checked letslearngraphql.com for its SEO Trend and saw that your website could use a boost. We will enhance your ranks organically and safely, using only state of the art AI and whitehat methods, while providing monthly reports and outstanding support. More info: Unbeatable SEO Regards Mike Winter Digital X SEO Experts

  • How do you mask sensitive request params in gqlgen?

    1 I am currently using gqlgen and would like to log request parameters for error investigation purposes. While I know how to access request parameters like below, I am concerned that this way may log sensitive information such as email addresses or passwords. srv.SetErrorPresenter(func(ctx context.Context, err error) *gqlerror.Error { goc := graphql.GetOperationContext(ctx) fmt.Println(goc.Variables) // i […]

  • React NextJS 13 page navigation – react-relay query on page – prerendering error during build

    0 I have a react component called pagesproductDetail.tsx which loads a product detail data. The productId comes from query parameter, the data comes from a graphQL query called productStateByKeyQuery and is defined in an external file. Starting the npm run dev the page works, when I navigate to this page an url like this: “ […]

  • fmt format %H:%M:%S without decimals

    7 I am trying to format a std::chrono::duration object to the format HH:MM::SS, e.g. 16:42:02 being the hours (16), the minutes (42), and the seconds (2). the library fmt offers useful formatting specifiers for this: using namespace std::chrono; auto start = high_resolution_clock::now(); auto end = start + 4s; fmt::print("{:%H:%M:%S} n", end); which unfortuantely prints the […]

  • Can’t consume context in my mutation resolver, request object passed instead Apollo Server v4

    0 I am trying to pass the pubsub to resolvers. I am able to pass pubsub to subscription ‘subscribe’ functions via the useServer function, and as far as I can tell from research the expressMiddleware context should be passed to all resolvers, but when logging it out I’m just getting the request object. index.ts const […]