Tag: graphql
-
String cannot represent value: { success: false, status_code: 34, status_message: “The resource you requested could not be found. } GraphQL Error
0 Anyone please helppppp!!! I am trying to use TMDB movie api to post a rating, check out the link here for their docs:https://developer.themoviedb.org/reference/movie-add-rating, however i face an issue that it keeps showing me the below error when i implement to Graphql code for Mutation, how do i solve it: "errors": [ { "message": "String…
-
Triggering one query is triggering other related ones
0 I suppose its because of cache? But i have Query01 that i trigger using a button click, and Query02 that had run previously, when Query01 runs, it reruns query 02. What is going on?? Here’s the structures: query Query01( $patientId: Something! $externalId: String $externalEncounterId: String! ) { patient(patientId: $patientId) { pastMedicalHistory {} prescriptions {}…
-
I need to get context using websocket on appolo server
0 Before I could get the context using startStandaloneServer but now I have to use a websecket and I’m not getting the token how is the file server.Js import { ApolloServer } from ‘@apollo/server’; import { createServer } from ‘http’; import { expressMiddleware } from ‘@apollo/server/express4’; import express from ‘express’; import { ApolloServerPluginDrainHttpServer } from…
-
Unable to receive raw GraphQL subscription updates using Apollo-Angular 4.2.1 and Multipart HTTP protocol
0 I m using apollo-angular 4.2.1. Our backend team has drop websocket using graphql. we are using Multipart HTTP protocol for GraphQL subscriptions following is my setup for apollo client export function createApollo(httpLink: HttpLink): ApolloClientOptions<any> { loadDevMessages(); loadErrorMessages(); return { link: httpLink.create({ uri, headers: new HttpHeaders({ "Accept": ‘multipart/mixed; boundary="graphql"; subscriptionSpec="1.0", application/json’ }) }), cache: new…
-
Physical Storage of InMemory Cache of Apollo Client
0 According to Apollo Client docs, the InMemory cache is used in the apollo client cache as instantiated in the below code import { InMemoryCache, ApolloClient } from ‘@apollo/client’; const client = new ApolloClient({ // …other arguments… cache: new InMemoryCache(options) }); Reference: https://www.apollographql.com/docs/react/caching/cache-configuration/ Where is this in-memory storage physically created? Is it in sessionStorage or…
-
How to create nested domain in nestjs graphql?
0 How to create subdomains in nestjs/graphql? to be able to query something like query { Foo { Bar { search(page: 1) { id name } } } } Basically how can I create the Foo and Bar handlers? graphql nestjs Share Follow asked 1 hour ago JonathanJonathan 4,72477 gold badges4545 silver badges6565 bronze badges…
-
Graphql cache: Specify a merge function to a query which is nested under a common type
0 Lets say graphql scema looks like this type query { foodInformation: Foodinformation # some other query types carInformation: CarInformation } type Foodinformation { getDishes(): Dishes! getFilteredDishes(input: filterInput): Dishes! # some other quiries } type PageInformation { pageNumber: int pageSize: int totalPages: int totalItems: int } input FilterInput { name: string id: int comment: string…
-
Graphql playground desktop app won’t load
0 I was using the graphql playground desktop app on my Mac for a few months when it suddenly stopped working. Now , when I try to open the application, it gets stuck on this. I uninstalled and reinstalled application but didn’t help. Any ideas? macos graphql apollo graphql-playground Share Follow asked 4 mins ago…
-
Updating a list in React / GraphQL
0 I am creating a function that enables an admin to manage which items would be added to the dashboard list of items, He can add/remove items from a list in settings to the actual list in dashboard. I added the following code in Settings.js: import { dashboardList } from ‘./Dashboard’; const dashboardItems = […