Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL Object constraints #5715

Merged
merged 12 commits into from
Aug 2, 2019
Merged

GraphQL Object constraints #5715

merged 12 commits into from
Aug 2, 2019

Commits on Jun 21, 2019

  1. GraphQL Object constraints

    Implements the GraphQL Object constraints, which allows us to filter queries results using the `$eq`, `$lt`, `$gt`, `$in`, and other Parse supported constraints.
    Example:
    ```
    query objects {
      findMyClass(where: {
        objField: {
          _eq: {
            key: 'foo.bar',
            value: 'hello'
          },
          _gt: {
            key: 'foo.number',
            value: 10
          },
          _lt: {
            key: 'anotherNumber',
            value: 5
          }
        }
      }) {
        results {
          objectId
        }
      }
    }
    ```
    In the example above, we have the `findMyClass` query (automatically generated for the `MyClass` class), and a field named `objField` whose type is Object. The object below represents a valid `objField` value and would satisfy all constraints:
    ```
    {
      "foo": {
        "bar": "hello",
        "number": 11
      },
      "anotherNumber": 4
    }
    ```
    The Object constraint is applied only when using Parse class object type queries. When using "generic" queries such as `get` and `find`, this type of constraint is not available.
    douglasmuraoka committed Jun 21, 2019
    Configuration menu
    Copy the full SHA
    181161e View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2019

  1. Objects constraints not working on Postgres

    Fixes the $eq, $ne, $gt, and $lt constraints when applied on an Object type field.
    douglasmuraoka committed Jun 24, 2019
    Configuration menu
    Copy the full SHA
    9b34f07 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2019

  1. Configuration menu
    Copy the full SHA
    efe3e32 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12ece92 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2019

  1. Configuration menu
    Copy the full SHA
    df018ba View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2019

  1. Configuration menu
    Copy the full SHA
    8b568f3 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2019

  1. Configuration menu
    Copy the full SHA
    cbecde3 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2019

  1. Configuration menu
    Copy the full SHA
    199e656 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2019

  1. Configuration menu
    Copy the full SHA
    483a70d View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2019

  1. Configuration menu
    Copy the full SHA
    25d5611 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e4c128c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    595d7d8 View commit details
    Browse the repository at this point in the history