0 I am new to GraphQL and looking for some assistance in understanding how I could go by to sort the results of a nested query. I have a schema as below, based on the documentation here – https://docs.amplify.aws/guides/api-graphql/query-with-sorting/q/platform/js/ type Segment @model { id: ID! name: String! order: Float! type: String! @index(name: "byOrder", queryField: "segmentByOrder", […]
0 I made a simple dummy application as in the end it will fit in a much bigger enterprise application, but I first made a proof of concept to make sure it works… and it doesn’t yet! I’m at a loss why this is. I’ve followed the documentation on https://mswjs.io/ for getting the mock in […]
0 I’m attempting to replicate an embedded self-referencing SQL query using GraphQl. The situation is that we have records in a database that are created off of other records by an internal user. The query I am trying to do is to get all of the records of a user and the associated records that […]
-1 My task is to use a query, send the mandatory variables and get a pdf from the BE. Right now, I have the code but I can’t get the pdf downloaded. In the network tab I can see my request but nothing in the response. This is the request: query getCollectionReportOverview( $filterReportCollectionOverview: ReportCollectionOverviewInput! ) […]
0 I am working with Contentful CMS GraphQL API. I have a field that contains a list of id’s: I’d like to retrieve the entities corresponding to those id’s. I can do it with a second query: But I’d like to do it on the fly, in the first query. I suppose some code should […]
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]! […]