Tag: graphql
-
Spring Boot 3 Observability – collect GraphQL error metrics
0 I’ve been working on adding monitoring metrics in our GraphQL gateway recently. I have a Spring Boot project with the following dependencies: ‘org.springframework.boot’ version ‘3.1.5’ spring-boot-starter-graphql:3.0.1 spring-boot-starter-actuator spring-boot-starter-aop …[others not relevant]… So I have a GraphQL server that typically returns an HTTP 200 status code for all responses and in case of an issue…
-
why i can’t connect with my api , the header of requset is (blocked by cors) nodejs
0 I want to return data from my graphql API, I have two front-end in one of these is work, but in another front-end, it doesn’t work when I run the first front end in this port it works but for the second one to doesn’t work and it says blocked by cors policy hare…
-
Label Dimension Mismatch for GitHub action graphql API query
0 Currently running into an issue where this line of code creates the following error. Code for GitHub action (.yml file) if: steps.filter.outputs.patterns == ‘true’ run: | item_id="$( gh api graphql -f query=’ mutation($issueid:ID!, $labels:[ID!]) { updateIssue(input: {labelIds: [$labels], id: $issueid}) { issue { id } } }’ -f labels="my_label_code" -f issueid=$ISSUE_NODE_ID)" Error code: gh:…
-
apollo explorer say “isTrusted”: true when i try use Subscription
3 guys, I have a problem when I want to use a Subscription I’m facing this issue I don’t find a solution in any place, I’m a GQL user and i decide to use Subscription to make real-time website but I’m facing a a this issue , hare is code I’m trying to show apollo…
-
Can you create an embedded Graphql query?
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…
-
How to sort the list in nested query result in an AWS Amplify application
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",…
-
Vue, Vitest and MSW: Mocking and testing a GraphQL query result in composable not possible
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…
-
How to create an embedded Graphql query
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…
-
How can I use my query from graphQL and get pdf downloaded?
-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! )…
-
GraphQL query: how to map a list of ids to the corresponding entities?
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…