GQL only allows a single value of a multivalue attribute to be specified at a time #127

Open
opened 2023-12-18 17:57:10 +00:00 by telackey · 0 comments
Member

As noted here, https://git.vdb.to/cerc-io/laconicd/src/branch/main/gql/util.go#L294, arrays (eg, repeated fields in protobuf) are not handled at all when processing GQL queries.

So if a record has a multivalued attribute like:

tags:
  - foo
  - bar
  - baz

After #128, it is possible to search off any single value, but because of the lack of support for arrays, it is not possible to search for a combination of values.

That is, we can search for:

--tags foo

But not:

-- tags foo --tags baz
As noted here, https://git.vdb.to/cerc-io/laconicd/src/branch/main/gql/util.go#L294, arrays (eg, repeated fields in protobuf) are not handled at all when processing GQL queries. So if a record has a multivalued attribute like: ``` tags: - foo - bar - baz ``` After #128, it is possible to search off any single value, but because of the lack of support for arrays, it is not possible to search for a combination of values. That is, we can search for: ``` --tags foo ``` But not: ``` -- tags foo --tags baz ```
telackey self-assigned this 2023-12-18 17:57:28 +00:00
telackey changed title from repeated fields are not searchable to GQL only allows a single value of a multivalue attribute to be specified at a time 2023-12-18 22:27:28 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconicd-deprecated#127
No description provided.