Questions

  • GraphQL schema for DynamoDB

    0 I’m using DynamoDB and want to create a database with GraphQL API. How do I have to define my schema so my partition key is userID and my sort key is MMYY. Every userID has a lot of MMYY, and every MMYY has entries which are just some data. I want all of these […]

  • When is it ok to be !ok() with C++20 chrono dates?

    10 The <chrono> library allows dates to silently fall into a state of !ok(). For example: #include <chrono> #include <iostream> int main() { using namespace std; using namespace chrono; auto date = 2023y/October/31; cout << date.ok() << ‘n’; date += months{1}; cout << date.ok() << ‘n’; } Output: 1 0 Demo. I get that Oct […]

  • Why is my GQL function getting called repeatedly? [closed]

    0 Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 hour ago. Improve this question I am now using React and Apollo […]

  • Next.js Vercel deployment doesn’t run codegen command

    0 I created a React Next.js project with Typescript on pnpm and using graphql-codegen/typescript to create types. On vercel build, I get module not found error for import of generated types with codegen. On development server I generate types with ‘pnpm gen’ command manually from terminal. Probably while next build on vercel, it doesn’t run […]

  • How can I use this graphQL DTO in my react app?

    0 I have been given a task that I have to use a query and download a pdf when I click on a button. The thing is that I’m new to graphQL and the backend guy has just sent to me this type Query{ getCollectionReportOverview(filterReportCollectionOverview:ReportCollectionOverview ): String! } input ReportCollectionOverview { collectionNumbers: [Int]! collectionNames: [String]! […]

  • How to do the simplest pagination in GraphQL? (using Star War API)

    0 I was able to find how to get the first N or last N elements: { allPeople(first: 2) { people { name birthYear } } } However, it is typical that some websites use www.my-site.com/people?page=3 as a bookmark to see page 3 of the results. For example, the Star War API has 82 people […]

  • How can I use this grapql DTO n my react app?

    0 I have been given a task that I have to use a query and download a pdf when I click on a button. The thing is that I’m new to graphQL and the backend guy has just sent to me this type Query{ getCollectionReportOverview(filterReportCollectionOverview:ReportCollectionOverview ): String! } input ReportCollectionOverview { collectionNumbers: [Int]! collectionNames: [String]! […]

  • Looking for a guide to access AWS Appsync Graphql api from NodeJS app via http request

    -1 There is currently, to my knowledge, no one guide that walks through this process so I’d like to find one that can be extended upon and commented on by others who may have extra security "best practices" and the likes to contribute. node.js graphql amazon-iam aws-amplify aws-appsync Share Improve this question Follow edited Aug […]

  • How to query all people using GraphQL with Star War API?

    0 I tried the sample in the book Learning GraphQL, 1st Ed, by O’Reilly: query { person(personID: 5) { name birthYear } } on https://graphql.org/swapi-graphql and was able to get back: { "data": { "person": { "name": "Leia Organa", "birthYear": "19BBY" } } } However, I tried to look for how to omit the personID […]

  • How to enable gzip at GraphQL server?

    5 According to the this article, it’s encouraged that any production GraphQL services enable GZIP and encourage their clients to send the header: Accept-Encoding: gzip I’ve tested this in Postman, with “Accept-Encoding” enabled or disable, I didn’t see any difference in the responded “content-length”. So my question, how to enable GZIP encoding at graphQL server? […]