Tag: graphql
-
Not able to run GraphQL mutations in Redux even though I am able to run it within the component [closed]
-2 Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 13 mins ago. Improve this question I am currently working on a project in which GraphQL is being implemented for the first time and initially…
-
How to unit test function that calls Amplify Api mutate method?
0 I have a system that is using Amplify Api to interact with a GraphQL api that is not part of an Amplify project. None of it was set up with the amplify-cli. I have a function that makes a call to the mutate function of the AmplifyCategory class. I would like to unit test…
-
Android-GraphQL-Apollo client – Query unresolved reference
0 I am trying to integrate graphql in my android project.My package name is app.android.mylife. I have set apollo { packageName.set("app.android.mylife") } in my gradle file. I created the same package structure for graphql folder also. main-graphql-app-android-mylife->(here all graphql files) I am having schema.json file which is also integrated . And defined the query like…
-
I’m getting an error when I try to upload in GraphQL: “POST body missing, invalid Content-Type, or JSON object has no keys.”
0 My code is correct, but I don’t know what’s happening, I need to upload it with graphQL but I can’t, my resolver code looks like this: `import { Resolver, Query, Mutation, Arg } from "type-graphql"; import { GraphQLUpload, FileUpload } from "graphql-upload-ts"; @Resolver() export class CategoryResolver { @Mutation(() => String) async uploadImage(@Arg("file", () =>…
-
How to get Typescript to compile custom GraphQL Scalars
-1 This very simple GraphQL Custom Scalar fails with the typescript error: TS2351: This expression is not constructable. Type ‘typeof import("…/graphql/node_modules/graphql/index")’ has no construct signatures. import GraphQLScalarType, { GraphQLInt } from ‘graphql’; export const CustomScalar = new GraphQLScalarType({ …GraphQLInt, name: "CustomScalar" }) what needs to be changed to get Typescript to compile it? typescript graphql…
-
The LINQ expression OrderBy DateTimeOffset.DateTime could not be translated
0 I have a .NET Core project in which I have implemented this GraphQL query. The query works correctly, but the sorting by date is not working. [UsePaging(MaxPageSize = 200, IncludeTotalCount = true)] [UseProjection] [UseFiltering] [UseSorting] public async Task<IQueryable<UserDto>> UserMetadatas(string myValue, [Service] ActivityEngineDataContext context,[Service] IMapper mapper) { var entities = context.Users.Where(act => act.MyValue== myValue); return…
-
Is there any way to get gatsby-source-filesystem name in gatsby-plugin-mdx query?
0 I’m using gatsby-plugin-mdx to create pages. But I want to create different kinds of pages based on the folder they are sourced from with gatsby-source-filesystem. I made the name different in the gatsby-source-filesystem config but I can’t seem to pass that along to the mdx node. Does anyone know of a way to do…