Skip to content

Atlas App Services

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback

29 results found

  1. 163 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  2. Pagination in GraphQL

    We have slicing via limit: INT, but we do not have the ability to specify an offset. Are there plans to add this soon?
    GraphQL Documentation actually specifies their pagination terms as follows:
    first: int
    offset: int
    after: _id
    Are there plans to implement this at all?

    88 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  3. Adding or removing elements from array fields

    It would be helpful to support array add/remove in update mutations. I've been running into this most often when dealing with one-to-many relationships.

    For example, adding/removing books from an author. Currently, you would have to fetch the entire array of books to add or remove the book linked to the author. If I could supply the foreign key to add/remove from the relationship that would be fantastic.

    36 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  4. Custom GraphQL Schema for MongoDB Realm

    Dear MongoDb GraphQl Stitch developers,

    Is it possible to add an ability to modify the final GraphQl schema (in order to remove unnecessary for my API stuff)
    OR
    Build it based on existed roles?

    For example, Im building a "read only" GraphQl API and have NO roles that can actually modify the data. So I find it illogically to have mutations in the Final GraphQl schema.

    It would be great to have an ability to choose which exactly mutations/queries I need for my GraphQl.

    Thank you.

    24 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  5. Allow deeper relationships under Rules

    I really like being able to use GraphQL and how you can auto generate a schema but when trying to relate fields I noticed it would only let me relate top level fields.

    For example - we have "accounts" and "users" under accounts with user Id on a related object. But I cannot do related userId back to account.user.userid since user is an object. I was hoping after I generated a schema for all the collection I would be able to drill down deeper but no such luck.

    20 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  6. Add federated graph support

    Unable to upload apollo federation dependency on the beta version of MongoDB Realm, it would be great if that dependency would be supported soon.

    FYR: https://www.npmjs.com/package/@apollo/federation

    14 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  7. Support relationships for fields inside arrays of embedded objects in GraphQL

    Currently, as explained in the App Services documentation, the "GraphQL API does not currently support relationships for fields inside arrays of embedded objects. You can use a custom resolver to manually look up and resolve embedded object array relationships."

    There is a contradiction with this other documentation that explains it's possible: https://www.mongodb.com/docs/atlas/app-services/schemas/relationships/#embedded-object-within-a-list

    But it's not possible.

    For example, with this schema:

    {
      "title": "Person",
      "properties": {
        "_id": { "bsonType": "objectId" },
        "pets": {
          "bsonType":"array",
          "items": {
            "title":"PersonPet",
            "bsonType": "object",
            "properties": {
              "favoriteToyBrand": { "bsonType": "objectId" }
            }
          }
        }
       // ...additional model properties
      }
    }
    

    and this relationship:

    {
      "pets.[].favoriteToyBrand":
    10 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  8. Single schema of truth: JSON Schema / Realm Schema / GraphQL Schema / TypeScript Types

    I think the current recommended initial prototyping workflow for a Realm web SDK user is like this:

    1) Add first data in collection (manually, on Compass etc.)
    2) Generate JSON Schema (manually click a button on web UI)
    3) Set up relationship (manually, on web UI)
    4) Download GraphQL Schema (manually click a button on web UI)
    5) Get TypeScript types and React hooks (automatically generated by graphql-codegen CLI)
    6) If you use another Realm SDK somewhere else (ex. Node.js sdk for server side), write Realm Schema (manually)

    This is not very developer friendly, and requires back-and-forth work between CLI,…

    8 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    6 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  9. Array types in generated GraphQL schema should follow JSON schema of a collection or custom type

    Hello!

    Realm generates GraphQL schema that does not reflect the exact JSON schema of a collection or custom type when it comes to array fields. Generated GraphQL schema allow arrays to contain NULLs even if this is not stated in JSON schema.

    For example, please see collection schema in the attachment. (Not able to insert JSON here in a readable manner)

    For this schema, I expect Realm to generate following GraphQL type for my collection:

    type MyCollection {
    _id: ObjectId!
    arrField: [String!]!
    }

    Please note the exclamation sign inside the square brackets. This states that the array item can only…

    6 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  10. Allow editing of the generated GraphQL schema and resolver

    The data model that I want to expose to the user is not the one that I have in MongoDB, having this feature would be nice

    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  11. GraphQL in Realm Functions

    It would be useful to have an integrated GraphQL client that is authenticated against the cluster available in Realm functions, to create stored queries and modify these in postprocessing in a Realm function.

    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  12. Default value for fields

    A way to set default value to a field, when this is not given in the input.

    GraphQl already has this functionality..

    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  13. Ability to Reuse Types in Custom Resolver Schemas

    We are in the process of migrating from a hand-implemented Apollo server to Mongo Realm, but are finding the inability to reuse types on custom resolvers to be a serious impediment.

    For example, we have a number of custom resolvers that use the same type to define a temporal interval, but we cannot reuse that type in the arguments for our custom resolvers as Stitch will throw an error upon encountering those duplicated types. Additionally, many of these custom resolvers return the exact same type, but if we try to reuse that same type definition Stitch will throw errors about…

    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    planned  ·  Drew responded

    Hi Folks – This improvement is already planned and should be completed shortly.

  14. Allow one-to-many relationships in Realm GraphQL

    Two collections A & B. One field say _id of collection A is the "foreign key" for a field say "field1" in collection B.

    A: {_id:1, k1:v1, k2:v2}

    B: {f1:1, x1:y1} //Values of field f1 correspond to values of _id in A
    B: {f1:1, x1:y2}

    For one value of _id in A, there can be multiple corresponding documents in B. If we create a relationship currently in Realm GraphQL, only one document is fetched. The expected result set is 2 documents.

    The current cumbersome workaround is to add an array field in collection A with all corresponding document IDs from…

    4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  15. Support for updating nested fields in GraphQL mutations

    I want to do the equivalent of {$set: {"details.pm_stage": "...."}}

    export const UPDATEPROJECTDETAILS = gql
    mutation UpdateProjectDetails($query: PsprojectQueryInput!, $pmStage: String!) {
    updateOnePsproject(query: $query, set: {details: {pm_stage: $pmStage}}) {
    _id
    }
    }
    ;

    right now the whole "details" subdocument gets overridden

    4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  16. Support for JSON schema oneOf / anyOf / allOf

    In our current project we have the requirement to support slightly differently shaped documents, contained within in the same collection, that are identified by an enumerated "type" field. In order to do this we require the ability to make use of the oneOf / anyOf / allOf polymorphic features of the JSON schema which would then ideally be relflected in the MongoDB Realm GraphQL endpoint. I was informed that this was being looked at a while ago but can see no associated feature request.

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  17. Custom Query Filters

    While you can create custom resolvers for 3rd party data or functions, this doesnt help me use graphQL to search existing types. I want to be able to query an existing type based on a contains. I know that this is a complex issue, but if we could create a custom query filter like we do for in, gt, lt, etc, I think this would help make the graphQL API more usable.

    Currently, we are reduced to either using the limited query abilities, or recreate everything from scratch.

    For instance:

    I have a query currently:

    query {
    authorizationGroup(query: { name:

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  18. GraphiQL Description field

    I would like to add descriptions to improve the documentation of my GraphQL queries. When browsing the API through GraphiQL, all types and queries say "No description", so one could figure that this would be able to edit, but it's currently not possible (https://developer.mongodb.com/community/forums/t/add-description-to-custom-resolver/14227).

    It would be nice to have the possibility to add a "description" key in a custom resolver JSON schema, like suggested in the post above.

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  19. Able to overwrite default value of Limit in GraphQL Query

    In Realm GraphQL Query there are default value of Limit set to 100 and it is not changeable. It would be good to be able to overwrite default value

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  20. Retain GraphQL Query History

    The GraphQL feature has a history list while you stay on the page. It would be a great improvement if it maintained that history even if you navigated away and came back.

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  GraphQL API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
← Previous 1
  • Don't see your idea?

Feedback and Knowledge Base