0 graphql query running import { gql } from ‘@apollo/client’; const GET_CLIENTS = gql` query getClients { clients { id name email phone } } `; export { GET_CLIENTS }; import {gql} from ‘@apollo/client’; const DELETE_CLIENT = gql` mutation deleteClient($id: ID!) { deleteClient(id:$id) { id name email phone } } `;[enter image description here][1] export […]
0 I have a particular feature where I require to implement a second graphql client (using @apollo/client) that uses the old ws protocol for subscriptions – the other graphql client uses the latest one. This is a code snippet of a codesandbox link import React, { useState } from "react"; import reactLogo from "./assets/react.svg"; import […]
0 I have just started to learn GraphQL, I am using GraphQL with SpringBoot and MySQL. I have a table in MySQL, "Employee" which looks as follows ID NAME EXPERIENCE DEPARTMENT_NAME 1 Alex 7 Sales 2 Josh 6 Marketing 3 Hans 3 Sales 4 Max 8 Marketing and ofcourse i have POJO in SpringBoot class […]
0 I’m working on a project using graphql with React Native in the frontend and Nodejs in the backend with mongodb as my database. In this project, I have posts that are created and shown on a screen. I’ve done this using graphql subscriptions for real time updating of posts, but I need the user […]
2 I have an instance of Hasura running in the Docker container and action handler API written in NodeJS/Express running directly on the machine. When I test everything locally it works like a charm ( macOS M1 ), but when I replicate the same setup on the server ( Ubuntu 20.04 ) it returns an […]
0 I need some help. I tried to set a default value with = in aws graphql API with AWS Amplify like type User @model @auth(rules: [{allow: public}, {allow: private, operations: [read]}]) { id: ID! isFavorite: Boolean logo: String status: String = "active" # the issue line } then I pushed the code but in […]
7 I updated Cocoapods to 1.13.0 and after calling pod install it throws an error: conversions.rb:108:in ‘class:Array’: undefined method ‘deprecator’ for ActiveSupport:Module (NoMethodError) bundler: failed to load command: pod (/opt/homebrew/opt/bin/rbenv/versions/3.2.2/bin/pod) /opt/homebrew/opt/bin/rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb:108:in `<class:Array>’: undefined method `deprecator’ for ActiveSupport:Module (NoMethodError) deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator ^^^^^^^^^^^ Did you mean? deprecate_constant from /opt/homebrew/opt/bin/rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb:8:in `<top (required)>’ from <internal:/opt/homebrew/opt/bin/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require’ […]
0 thanks for looking into this. So I am trying to migrate my Apollo Server from V3 to V4, I have a resolver that type checks for an Access Token and returns it like so export class LoginResolver { @Mutation(() => AccessToken) async login( @Arg("email") email: string, @Arg("password") password: string, @Ctx() { prisma, res }: […]
0 I’m migrating a quite old GraphQL server (<10) to the latest version (13). It looks everything is working OK after doing the necessary changes. The only thing is that HotChocolate dropped the PaginationAmountType class. The queries done by clients of my service do not seem to be compatible anymore. As this is a critical […]