Questions

  • 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 […]

  • What is the purpose of _t aliases and _v variable templates for type traits?

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

  • 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 = [ […]

  • Error when Trying to Execute GraphQL Mutation with Micronaut and Kotlin

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

  • Graphene Django – How to add extensions to the response object

    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’] […]

  • GraphQL disposed DataContext

    0 When trying GraphQL in the Playground, I get the following error: Cannot access a disposed context instance. A common cause of this error is disposing a context instance that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are […]

  • vendure-auth-token in next js

    0 As I am using vendure graphql in my next js project and I am using apolloClient for query and mutation , I am facing an problem while loging in My client code import { HttpLink } from "@apollo/client"; import { NextSSRInMemoryCache, NextSSRApolloClient, } from "@apollo/experimental-nextjs-app-support/ssr"; import { registerApolloClient } from "@apollo/experimental-nextjs-app-support/rsc"; const { BACKEND_URL […]

  • Cannot find the URL to my Strapi Media Library

    0 So, I hosted my strapi app on Cloudinary and Render. So there is a rich text input in my strapi backend. When i fetch the data using graphql, the images are sent out as URLs ofc. So when i host strapi in my localhost, the url is this, https://localhost:1337/uploads/Expressjs_706596c597.png. But when my app is […]