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 […]
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 […]
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 […]
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]! […]
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 […]
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]! […]
-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 […]
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 […]
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? […]