# GraphQL API

**URL:** https://community.parseplatform.org/c/parse-server/graphql-api/12.md

[Latest](https://community.parseplatform.org/latest.md) · [Categories](https://community.parseplatform.org/categories.md) · [Tags](https://community.parseplatform.org/tags.md)

---

## [FileInfo GrahpQL type missing for array result](https://community.parseplatform.org/t/fileinfo-grahpql-type-missing-for-array-result/2590)

<div class="topic-metadata">

**Author:** [@Daniels](https://community.parseplatform.org/u/Daniels)\
**Replies:** 4\
**Last updated:** [March 22, 2024, 10:09pm UTC](https://community.parseplatform.org/t/fileinfo-grahpql-type-missing-for-array-result/2590 "2024-03-22T22:09:22Z")

</div>

Hello there! I am rather new to Parse so I might be doing things wrong. My Parse app has an “Item” class with a field called “images” which is an array that holds image files. I am using the JavaScript SDK to attach mul…

---

## [How to call cloud function from Parse via GraphQL](https://community.parseplatform.org/t/how-to-call-cloud-function-from-parse-via-graphql/3032)

<div class="topic-metadata">

**Author:** [@Vildnex](https://community.parseplatform.org/u/Vildnex)\
**Replies:** 1\
**Last updated:** [November 10, 2022, 7:37pm UTC](https://community.parseplatform.org/t/how-to-call-cloud-function-from-parse-via-graphql/3032 "2022-11-10T19:37:33Z")

</div>

I have the following docker-compose: version: '3.9' services: database: image: mongo:6.0.2 environment: MONGO\_INITDB\_ROOT\_USERNAME: admin MONGO\_INITDB\_ROOT\_PASSWORD: admin volumes: - ${H…

---

## [Custom schema as workaround to plurals issue](https://community.parseplatform.org/t/custom-schema-as-workaround-to-plurals-issue/1198)

<div class="topic-metadata">

**Author:** [@zadek](https://community.parseplatform.org/u/zadek)\
**Replies:** 4\
**Last updated:** [September 28, 2022, 1:24pm UTC](https://community.parseplatform.org/t/custom-schema-as-workaround-to-plurals-issue/1198 "2022-09-28T13:24:49Z")

</div>

Let’s say I have a Parse class called “Media”. The find query for this class will not be added to the auto-generated GraphQL schema, because it collides with the get query: warn: Query media could not be added to the au…

---

## [Grant permission to change users](https://community.parseplatform.org/t/grant-permission-to-change-users/2529)

<div class="topic-metadata">

**Author:** [@brunobg](https://community.parseplatform.org/u/brunobg)\
**Replies:** 1\
**Last updated:** [March 23, 2022, 3:39pm UTC](https://community.parseplatform.org/t/grant-permission-to-change-users/2529 "2022-03-23T15:39:23Z")

</div>

I want to have some administrator users with permissions to change other users. I’m using the GraphQL API, and while I can create new users I can’t edit existing one (I get “Insufficient auth”), but it’d be okay to use t…

---

## [Resolving inverse relationships on GraphQL](https://community.parseplatform.org/t/resolving-inverse-relationships-on-graphql/2293)

<div class="topic-metadata">

**Author:** [@brunobg](https://community.parseplatform.org/u/brunobg)\
**Replies:** 1\
**Last updated:** [December 13, 2021, 6:18pm UTC](https://community.parseplatform.org/t/resolving-inverse-relationships-on-graphql/2293 "2021-12-13T18:18:05Z")

</div>

How do I resolve inverse relationships in a GraphQL query? Say I have a 1:n pointer like Game → Player. I can easily fetch getGame { player { id } }, but can I easily get the games for a player with getPlayer or do I hav…

---

## [Before callback on graphql endpoints](https://community.parseplatform.org/t/before-callback-on-graphql-endpoints/2282)

<div class="topic-metadata">

**Author:** [@brunobg](https://community.parseplatform.org/u/brunobg)\
**Replies:** 3\
**Last updated:** [December 13, 2021, 6:16pm UTC](https://community.parseplatform.org/t/before-callback-on-graphql-endpoints/2282 "2021-12-13T18:16:27Z")

</div>

Is there a way to get a callback called for graphql endpoints? Something like beforeSave for objects. Reason: I want to do dynamic checking of conditions for queries or mutations.

---

## [Disable class mutations on GraphQL](https://community.parseplatform.org/t/disable-class-mutations-on-graphql/2272)

<div class="topic-metadata">

**Author:** [@brunobg](https://community.parseplatform.org/u/brunobg)\
**Replies:** 6\
**Last updated:** [December 10, 2021, 7:51pm UTC](https://community.parseplatform.org/t/disable-class-mutations-on-graphql/2272 "2021-12-10T19:51:09Z")

</div>

Is there a way to disable the class mutations (like createClass) on the GraphQL server? I set allowClientClassCreation on new ParseServer(), but the mutations are still present in the schema and actually work.

---

## [Different between objectId and id in graphql](https://community.parseplatform.org/t/different-between-objectid-and-id-in-graphql/2122)

<div class="topic-metadata">

**Author:** [@ptthien1012](https://community.parseplatform.org/u/ptthien1012)\
**Replies:** 2\
**Last updated:** [October 28, 2021, 7:08am UTC](https://community.parseplatform.org/t/different-between-objectid-and-id-in-graphql/2122 "2021-10-28T07:08:12Z")

</div>

Hi Guys I’m confused between ObjectId and id when using Graphql. I had found but didn’t see any answer and remained on the document. Thanks for help

---

## [Trying to solve, https://github.com/parse-community/parse-server/issues/7197](https://community.parseplatform.org/t/trying-to-solve-https-github-com-parse-community-parse-server-issues-7197/1909)

<div class="topic-metadata">

**Author:** [@axelhildingson](https://community.parseplatform.org/u/axelhildingson)\
**Replies:** 4\
**Last updated:** [August 21, 2021, 8:06am UTC](https://community.parseplatform.org/t/trying-to-solve-https-github-com-parse-community-parse-server-issues-7197/1909 "2021-08-21T08:06:19Z")

</div>

Hi, I am trying to solve this bug, GraphQL error when retur. We are in the process to migrate to gql but we still use a lot of cloud function and want to make the transition as simple as possible but this issue give us…

---

## [OR operator not working properly from auto-generated schema?](https://community.parseplatform.org/t/or-operator-not-working-properly-from-auto-generated-schema/1747)

<div class="topic-metadata">

**Author:** [@scrib](https://community.parseplatform.org/u/scrib)\
**Replies:** 1\
**Last updated:** [June 11, 2021, 4:08pm UTC](https://community.parseplatform.org/t/or-operator-not-working-properly-from-auto-generated-schema/1747 "2021-06-11T16:08:36Z")

</div>

Howdy! I have a question about my graphQL syntax below. In my attempt to use the OR operator (as it normally functions in other graphQL contexts) it doesn’t return any results. With the below syntax, it seems to be opera…

---

## [Many to many relationship](https://community.parseplatform.org/t/many-to-many-relationship/1692)

<div class="topic-metadata">

**Author:** [@Ictuer](https://community.parseplatform.org/u/Ictuer)\
**Replies:** 5\
**Last updated:** [May 26, 2021, 4:15pm UTC](https://community.parseplatform.org/t/many-to-many-relationship/1692 "2021-05-26T16:15:21Z")

</div>

I have two models Book and Author. Book has many Authors and Author has many Books. I am using relation type to implement that. But i can not get all books of an authors like i get all authors of a book. Please tell me w…

---

## [Ideas for Improving the GraphQL Layer](https://community.parseplatform.org/t/ideas-for-improving-the-graphql-layer/1683)

<div class="topic-metadata">

**Author:** [@n1ru4l](https://community.parseplatform.org/u/n1ru4l)\
**Replies:** 1\
**Last updated:** [May 22, 2021, 12:31am UTC](https://community.parseplatform.org/t/ideas-for-improving-the-graphql-layer/1683 "2021-05-22T00:31:45Z")

</div>

Hi from The Guild ! We’ve recently built and open-sourced a new plugin system for GraphQL that we think would be a huge improvement for Parse developers - GitHub - dotansimha/envelop: Envelop is a lightweight library al…

---

## [How to use Graghql](https://community.parseplatform.org/t/how-to-use-graghql/1665)

<div class="topic-metadata">

**Author:** [@hkblue](https://community.parseplatform.org/u/hkblue)\
**Replies:** 20\
**Last updated:** [May 18, 2021, 10:30pm UTC](https://community.parseplatform.org/t/how-to-use-graghql/1665 "2021-05-18T22:30:57Z")

</div>

My Graghql is up and running. When I enter the following code in the playground query Health { health } , it returns { “data”: { “health”: true } } However, when I tried to create an object by using: mutation …

---

## [User email field values not returned](https://community.parseplatform.org/t/user-email-field-values-not-returned/948)

<div class="topic-metadata">

**Author:** [@185driver](https://community.parseplatform.org/u/185driver)\
**Replies:** 10\
**Last updated:** [October 19, 2020, 10:08pm UTC](https://community.parseplatform.org/t/user-email-field-values-not-returned/948 "2020-10-19T22:08:03Z")

</div>

In a fresh parse-server instance (i.e. all CLPs and ACLs are defaults), I create two example users using a signUp mutation. I then query all the users. I’m passing user joe's valid session token in my header. Here’s my q…

---

## [Set Column Defaults When Creating Class with GraphQL Mutation](https://community.parseplatform.org/t/set-column-defaults-when-creating-class-with-graphql-mutation/943)

<div class="topic-metadata">

**Author:** [@185driver](https://community.parseplatform.org/u/185driver)\
**Replies:** 2\
**Last updated:** [October 16, 2020, 4:20am UTC](https://community.parseplatform.org/t/set-column-defaults-when-creating-class-with-graphql-mutation/943 "2020-10-16T04:20:40Z")

</div>

I am creating a custom Item Class using a GraphQL mutation. The quantity field should be required and have a defaultValue: 1. I don’t see a way to add these last two details to the schema at class creation time. Am I mis…

---

## [Is there have any solution to add custom parse server Schema.graphql to expressJs?](https://community.parseplatform.org/t/is-there-have-any-solution-to-add-custom-parse-server-schema-graphql-to-expressjs/940)

<div class="topic-metadata">

**Author:** [@ptthien1012](https://community.parseplatform.org/u/ptthien1012)\
**Replies:** 2\
**Last updated:** [October 16, 2020, 3:58am UTC](https://community.parseplatform.org/t/is-there-have-any-solution-to-add-custom-parse-server-schema-graphql-to-expressjs/940 "2020-10-16T03:58:59Z")

</div>

Hi guys I’m using expressJs and parse server. So I want to create custom schema and adding it to but it’s any solution for this ?

---

## [Using create\<ClassName\> Mutation](https://community.parseplatform.org/t/using-create-classname-mutation/939)

<div class="topic-metadata">

**Author:** [@185driver](https://community.parseplatform.org/u/185driver)\
**Replies:** 2\
**Last updated:** [October 15, 2020, 7:35pm UTC](https://community.parseplatform.org/t/using-create-classname-mutation/939 "2020-10-15T19:35:44Z")

</div>

I have a custom Class called Item. I would like to use Parse’s auto-generated createItem GraphQL mutation to add an item for the currently logged in user. I have my Item class security set as follows: CLP: Public Read…

---

## [Upload serialization unsupported When using AWS S3 when add schema.graphql in config setup](https://community.parseplatform.org/t/upload-serialization-unsupported-when-using-aws-s3-when-add-schema-graphql-in-config-setup/917)

<div class="topic-metadata">

**Author:** [@ptthien1012](https://community.parseplatform.org/u/ptthien1012)\
**Replies:** 8\
**Last updated:** [October 9, 2020, 6:21am UTC](https://community.parseplatform.org/t/upload-serialization-unsupported-when-using-aws-s3-when-add-schema-graphql-in-config-setup/917 "2020-10-09T06:21:54Z")

</div>

Hi everyone, I’m a newbie of Parse server :sob: and I have one trouble.My project is using Graphql, parse server and parse server cloud code. Im using AWS S3 to upload Images by using filesAdapter with module @parse/s3-f…

---

## [Using Object Pointer Field in CLP as Security for GraphQL Query Result](https://community.parseplatform.org/t/using-object-pointer-field-in-clp-as-security-for-graphql-query-result/908)

<div class="topic-metadata">

**Author:** [@185driver](https://community.parseplatform.org/u/185driver)\
**Replies:** 5\
**Last updated:** [October 8, 2020, 8:58pm UTC](https://community.parseplatform.org/t/using-object-pointer-field-in-clp-as-security-for-graphql-query-result/908 "2020-10-08T20:58:52Z")

</div>

I have a custom Item class. I have set my CLP permissions for this class to disable both general public access and general authenticated access, but it does allow user field pointer access: My Item object ACL is set …

---

## ["Cannot return null for non-nullable field" error](https://community.parseplatform.org/t/cannot-return-null-for-non-nullable-field-error/846)

<div class="topic-metadata">

**Author:** [@185driver](https://community.parseplatform.org/u/185driver)\
**Replies:** 6\
**Last updated:** [September 23, 2020, 6:59pm UTC](https://community.parseplatform.org/t/cannot-return-null-for-non-nullable-field-error/846 "2020-09-23T18:59:53Z")

</div>

I have an Item custom class, and I use a custom graphql mutation to update an item via a resolver in Cloud code so that I can do some other middleware things at the same time. # custom schema.graphql extend type Mutatio…

---

## [Adding a custom GraphQL mutation to Parse-Server](https://community.parseplatform.org/t/adding-a-custom-graphql-mutation-to-parse-server/820)

<div class="topic-metadata">

**Author:** [@185driver](https://community.parseplatform.org/u/185driver)\
**Replies:** 8\
**Last updated:** [September 21, 2020, 11:32am UTC](https://community.parseplatform.org/t/adding-a-custom-graphql-mutation-to-parse-server/820 "2020-09-21T11:32:04Z")

</div>

I am having success using the built-in schema for basic CRUD tasks on individual classes. Thank you for adding this remarkable graphql feature set to parse-server! I have been reading here and here about creating custom…

---

## [Type \\"\[ArrayResult\]\\" must have a selection of subfields error](https://community.parseplatform.org/t/type-arrayresult-must-have-a-selection-of-subfields-error/847)

<div class="topic-metadata">

**Author:** [@185driver](https://community.parseplatform.org/u/185driver)\
**Replies:** 2\
**Last updated:** [September 20, 2020, 10:15pm UTC](https://community.parseplatform.org/t/type-arrayresult-must-have-a-selection-of-subfields-error/847 "2020-09-20T22:15:54Z")

</div>

I have a custom class called Item. It has a fruit property of type Array. There is an object in that class where the fruit property value has been set to \["apple", "orange"\]. When I query for an item in the playground: …

---

## [Cannot find module --mountGraphQL](https://community.parseplatform.org/t/cannot-find-module-mountgraphql/422)

<div class="topic-metadata">

**Author:** [@ourdex86](https://community.parseplatform.org/u/ourdex86)\
**Replies:** 0\
**Last updated:** [June 13, 2020, 5:21pm UTC](https://community.parseplatform.org/t/cannot-find-module-mountgraphql/422 "2020-06-13T17:21:14Z")

</div>

Hi, I tried to run the parse-server using the following commands $ npm install -g parse-server mongodb-runner $ mongodb-runner start $ parse-server --appId DemoAppOne --masterKey 7828283 --databaseURI mongodb://127.0…

---

## [Duplicate "graphql" modules cannot be used at the same time since different](https://community.parseplatform.org/t/duplicate-graphql-modules-cannot-be-used-at-the-same-time-since-different/403)

<div class="topic-metadata">

**Author:** [@bahaa-kallas](https://community.parseplatform.org/u/bahaa-kallas)\
**Replies:** 3\
**Last updated:** [June 7, 2020, 9:04pm UTC](https://community.parseplatform.org/t/duplicate-graphql-modules-cannot-be-used-at-the-same-time-since-different/403 "2020-06-07T21:04:50Z")

</div>

I have updated parse dashboard and parse server from "parse-dashboard": "^2.0.3", "parse-server": "^3.10.0" my package.json: "parse-dashboard": "^2.1.0", "parse-server": "^4.2.0", then I start to receive: Duplicat…
