graphql-engine/v3/crates/custom-connector/src
Daniel Harvey 5fe266ca01 Boolean expressions in command argument presets (#539)
<!-- Thank you for submitting this PR! :) -->

## Description

This PR enables boolean expressions in command argument presets. This
allows users to provide an expression to do things like "when the `user`
role runs the `deleteUser` command they can only delete users with `id`
== `x-hasura-user-id`".

It's up to the data connector to interpret the expression as it sees
fit.

<!--
  Questions to consider answering:
  1. What user-facing changes are being made?
2. What are issues related to this PR? (Consider adding `(close
#<issue-no>)` to the PR title)
  3. What is the conceptual design behind this PR?
  4. How can this PR be tested/verified?
  5. Does the PR have limitations?
  6. Does the PR introduce breaking changes?
-->

## Changelog

- Add a changelog entry (in the "Changelog entry" section below) if the
changes
  in this PR have any user-facing impact. See
[changelog
guide](https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide).
- If no changelog is required ignore/remove this section and add a
  `no-changelog-required` label to the PR.

### Product

_(Select all products this will be available in)_

- [X] community-edition
- [X] cloud
<!-- product : end : DO NOT REMOVE -->

### Type

<!-- See changelog structure:
https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide#structure-of-our-changelog
-->

_(Select only one. In case of multiple, choose the most appropriate)_

- [ ] highlight
- [X] enhancement
- [ ] bugfix
- [ ] behaviour-change
- [ ] performance-enhancement
- [ ] security-fix
<!-- type : end : DO NOT REMOVE -->

### Changelog entry

<!--
  - Add a user understandable changelog entry
- Include all details needed to understand the change. Try including
links to docs or issues if relevant
  - For Highlights start with a H4 heading (#### <entry title>)
  - Get the changelog entry reviewed by your team
-->

Allow using boolean expressions in command arguments.

<!-- changelog-entry : end : DO NOT REMOVE -->

<!-- changelog : end : DO NOT REMOVE -->

V3_GIT_ORIGIN_REV_ID: 302f62a266db9c090ba232fe9ab06db4953f38a6
2024-05-03 08:12:35 +00:00
..
collections support field presets for input types (#454) 2024-04-23 15:02:04 +00:00
functions Boolean expressions in command argument presets (#539) 2024-05-03 08:12:35 +00:00
procedures Update to ndc-spec-0.1.2 (#443) 2024-04-05 09:35:47 +00:00
types support field presets for input types (#454) 2024-04-23 15:02:04 +00:00
collections.rs Update to ndc-spec-0.1.2 (#443) 2024-04-05 09:35:47 +00:00
functions.rs Boolean expressions in command argument presets (#539) 2024-05-03 08:12:35 +00:00
lib.rs Move all crates into a folder (#355) 2024-03-19 18:07:14 +00:00
main.rs Bundle custom connector data with the binary. (#480) 2024-04-19 15:06:11 +00:00
mutation.rs Use references where possible instead of cloning. (#478) 2024-04-18 17:35:48 +00:00
procedures.rs Update to ndc-spec-0.1.2 (#443) 2024-04-05 09:35:47 +00:00
query.rs Use references where possible instead of cloning. (#478) 2024-04-18 17:35:48 +00:00
schema.rs Update to ndc-spec-0.1.2 (#443) 2024-04-05 09:35:47 +00:00
state.rs Bundle custom connector data with the binary. (#480) 2024-04-19 15:06:11 +00:00
types.rs support field presets for input types (#454) 2024-04-23 15:02:04 +00:00