0 GraphQL Query I used: mutation CreateGitProfileRepo($name: String!, $description: String!, $homepageUrl: URI!) { createRepository(input: {name: $name, visibility: PUBLIC, description: $description, homepageUrl: $homepageUrl}) { repository { ref(qualifiedName: "main") { repository { id } } } } } I’m getting ref ID as null, as it is an empty repo. Now I’m creating a commit using: mutation […]
0 I tried below code to create organization using my github account getting error mutation { createOrganization(input: { login: "besttestzzzz", admin: true }) { organization { id login } } } { "input": { "admin": [ "testgithubaccount" ], "clientMutationId": "", "login": "testgithubaccount" } } I got errors view the below image. github graphql postman github-api […]
0 I have a project with Nuxt, GraphQL and Strapi. I cannot access to a article.data.attributes.title, but I can access to article.data.attributes. I have the error message : undefined is not an object (evaluating ‘_vm.article.data.attributes.title’). Weirdly, when I am updating from article.data.attributes to article.data.attributes.title, it is working, but just when I refresh the page, the […]
0 When i run the command npx tsc i get the error "Package ‘graphql’ support only TS versions that are >=4.1.0". But my typescript version is 5.1.6. This is my package.json : { "name": "typescript", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "jest", "start": "ts-node index.ts", "build": "tsc", "migrate": "ts-node -r tsconfig-paths/register ./src/migrations/migrations.ts" […]
0 I’m currently developing a GQL API in Rust using Actix and Juniper. actix = "0.13.0" juniper = "0.15.11" I’ve managed to create a working environment without issues, however I’ve noticed that Juniper is automatically renaming my Query fields. The code below generates a new field under my QueryRoot which should be named "list_shows" impl […]
3 I have a schema defined as follows: enum CardType { TYPE_1 TYPE_2 } type Card { id: ID! } type Order { id: ID! cards: [Card]! } input OrderFilter { cardType: CardType } type Query { getOrders(orderFilter: OrderFilter): [Order] } Also, the following resolvers: @QueryMapping public List<Order> getOrders(@Argument OrderFilter orderFilter) { return this.orderService.get(orderFilter); } […]
1 I’m learning GraphQL by building a simple python application, basically runs nmap scans stores output to a database, and can be queried by a GraphQL API. I seem to be a bit confused on how GraphQL works. I have a few tables that are one-to-many relationships: user has many scans, scans have results, results […]
0 I am currently getting userprofile information from the following endpoint ‘/api/v1/users/web_profile_info/?username=${username}’ which works. However it is quickly rate-limited and not suitable for my application. I would like to use the graphql endpoint for user profile information (biography) so I do not get rate limited. I cannot figure out how to generate a query_hash for […]
19 Does the definition int a = 0, b = a++, c = a++; have defined behavior in C? Or almost equivalently, does the , in an object definition introduce a sequence point as for the comma operator in expressions? Similar questions have been asked for C++: Does `int a = 0, b = a` […]
26 I’m about to convert a lot of old C++ code to more modern C++. There are many raw 2D arrays in that code like: Foo bar[XSIZE][YSIZE]; And I’m about to replace these declarations with std::array<std::array<Foo, YSIZE>, XSIZE> bar; This is a convenient way because the statements stay the same and the code is supposed […]