graphql-engine/v3/crates
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
..
auth create auth and utils subdirectories in crates, and move architecture information to a separate doc. (#534) 2024-05-01 09:05:15 +00:00
custom-connector Boolean expressions in command argument presets (#539) 2024-05-03 08:12:35 +00:00
engine Boolean expressions in command argument presets (#539) 2024-05-03 08:12:35 +00:00
lang-graphql Refactor errors, and split execute and explain code path (#525) 2024-05-02 07:29:06 +00:00
metadata-resolve Remove unused Display implementations and fix a broken one. (#545) 2024-05-02 13:59:36 +00:00
metadata-schema-generator All benchmarks must be Criterion benchmarks. (#498) 2024-04-23 13:00:24 +00:00
open-dds Use Postgres in readme (#546) 2024-05-02 21:40:37 +00:00
utils create auth and utils subdirectories in crates, and move architecture information to a separate doc. (#534) 2024-05-01 09:05:15 +00:00