Questions

  • GraphQL PlayGround screen is blackout

    0 I use MAC and GraphQL Playground App. I ran into trouble when I couldn’t see anything at the GraphQL Playground App. How can I fix it? The Screen is like Photo graphql Share Follow asked 1 hour ago lionflicklionflick 1933 bronze badges Load 3 more related questions Show fewer related questions 0 Sorted by: […]

  • UnityWebRequest works only in the editor, not in the standalone build

    -1 I noticed that UnityWebRequest is working BUT only in editor mode. When I build the game (in this case Im building Standalone for Windows 10) the response code is "200", but the {response.webRequest.downloadHandler.text} is equal to: "{"Errors":[{"extensions":{"internal":{"no connection to the server…. ecc… I knew that if response code equals 200 it means the connection […]

  • Protect GraphQl queries and mutations with middleware

    0 I’m developing an express app and experimenting with graphql. I’ve started to not using old endpoints I made before. The problem is some of my old endpoints protected by middlewares like: router.get( "/", [auth.verifyToken, auth.checkRole(["role1", "role2"])], someController.getAllThings ); So my question is how to protect queries and mutations with middlewares? node.js express graphql Share […]

  • Could not load file or assembly ‘System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies

    0 When I execute my project and reach this line: Dim response As GraphQLResponse(Of JObject) = graphQLHttpClient.SendQueryAsync(Of JObject)(request).Result I’m getting the following exception: System.IO.FileLoadException: Could not load file or assembly ‘System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File […]

  • Changing Default Welcome Screen of GraphiQL

    0 I am working on documenting my graphQL endpoints so that they show on the GraphiQL IDE. I am using the springboot spring-boot-starter-graphql, version 3.1.1 package which includes graphiQL. So far I have been using comments in my graphql schema files so that they generate in the docs section. The part I am stuck on […]

  • Custom error status code with gqlgen + go gin

    2 Recently I have been updating my GO REST APIs into graphQl API’s and I came across issue where I am unable to customise my status code with gqlgen. Response I got Headers Status Code: 200 OK { data: null, errors: [ {message: "Unauthorized access", path: ["…"]} ] } Expected Header Status Code: 401 UNAUTHORISED […]

  • Strapi 4 and NuxtJS: Unable to connect via GraphQL (ECONNREFUSED)

    2 I am building a small blog application using NuxtJS, Strapi 4 (and GraphQL) and apollo. To do that, i followed this tutorial: https://www.youtube.com/watch?v=yDkoV-8krcA The problem is for some reason NuxtJS is unable to connect to Strapi. I get the following error message: Network error: request to https://localhost:1337/graphql failed, reason: connect ECONNREFUSED ::1:1337 Strapi is […]

  • GraphQL: Nested queries vs root queries

    10 I’m using Apollo GraphQL on my server, and I’m trying to design my GraphQL API. One question I have is whether or not I should prefer nested queries over root queries. Let’s examine both in this example where the current user, me, has many invitations. Root queries me { id name } invitations { […]

  • From R array to Numpy array

    7 Lets say, I have a following R array a <- array(1:18, dim = c(3, 3, 2)) r$> a , , 1 [,1] [,2] [,3] [1,] 1 4 7 [2,] 2 5 8 [3,] 3 6 9 , , 2 [,1] [,2] [,3] [1,] 10 13 16 [2,] 11 14 17 [3,] 12 15 18 […]

  • How to recursively rename a list based on its list items

    7 I’d like to recursively rename (or name, as those items are currently unnamed) a list() based on its items (here text). There are several similar questions, however I haven’t found one with a list structure as follows and I can’t seem to find a general recursive approach to solve this. The example data comes […]