graphql-engine/v3/crates/open-dds
Daniel Harvey 6a791bc913 resolve predicates in the context of types (#444)
<!-- Thank you for submitting this PR! :) -->

## Description

This implements the first part of passing boolean expressions as command
arguments. It adds a `BooleanExpression` arm to `ValueExpression`, and
allows them to be resolved in the context of an ObjectType rather than
an entire model.

This means that if a boolean expression is passed to a command argument
that uses a field that doesn't exist, this happens:

<img width="960" alt="Screenshot 2024-04-05 at 15 54 20"
src="https://github.com/hasura/v3-engine/assets/4729125/cd795bc1-9fda-4cfb-bad3-1e70dd6227a0">

The output of this PR is that we can resolve metadata for boolean
expressions in command arguments, and generate a GraphQL schema for
them, but will throw an error if one is actually used. This will be
resolved in the follow-up PR.

V3_GIT_ORIGIN_REV_ID: 20b8840c313d7ee1f56ebd5becdb28bbe7743350
2024-04-26 14:06:12 +00:00
..
examples Update the ndc-postgres dependency to the latest version. (#386) 2024-04-03 08:04:07 +00:00
src resolve predicates in the context of types (#444) 2024-04-26 14:06:12 +00:00
Cargo.toml Bump strum from 0.25.0 to 0.26.2 (#424) 2024-04-15 09:56:34 +00:00
metadata.jsonschema resolve predicates in the context of types (#444) 2024-04-26 14:06:12 +00:00