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 […]
8 Consider this code: #include <vector> #include <iostream> #include <cstdint> #include <ranges> int main() { struct S { int a; int b; bool operator==(int other) const { return a == other; } }; std::vector<S> iv{ {1, 2}, {3, 4} }; // this works if (auto const it{std::find(iv.begin(), iv.end(), 1)}; it != iv.end()) { std::cout << […]
6 I have provided the sample codes below. My issue involves placing ‘map2’ in a square at the top left corner of ‘map1’ and adding an arrow from ‘map2’ to a specific location on ‘map1’. I’ve searched the site, but most commonly discussed topics are related to merging two data layers. library (tidyverse) library (rnaturalearth) […]
2 I am trying to type the event object coming from my AWS Amplify/NextJS front-end. It is sent via Amplify/GraphQL and being received in a NodeJS AWS Lambda. The typescript interface contained in import { AppSyncResolverEvent } from "aws-lambda"; – but this doesn’t quite match the event object that’s being received. Can someone please advise […]