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 […]
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 […]
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 […]
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 […]
7 There are a lot of *_v and *_t suffixes, like std::is_same_v, std::invoke_result_t, result_of_t and milions of other such functions. Why do they exist at all? Is it beneficial in any context to expose implementation details like std::result_of::type or std::is_same::value? Ignoring standard compliance, should the _v _t versions always be preferred? Could the ::type ::value […]
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 […]
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 = [ […]
0 I am creating a microanuat and kotlin app using grapqhl but when trying with curl am getting an error which i have pasted below the code, am trying to figure wher i am going wrong import graphql.ExecutionInput import graphql.GraphQL import io.micronaut.http.annotation.Controller import io.micron " curl -X POST -H "Content-Type: application/json" -d ‘{ "query": "mutation […]
0 It’s fairly common practice in GraphQL to return custom data on an extensions field (Facebook use this for image prefetch URLs for example). I am trying to do this in Graphene, and have made an attempt to do this in execute_graphql_request. class CustomGraphQLView(GraphQLView): def execute_graphql_request(self, request, *args, **kwargs): result = super().execute_graphql_request(request, *args, **kwargs) result.extensions[‘a’] […]