Allow create-schema overrides to specify array-typed virtual fields

Description

As documented at https://github.com/folio-org/mod-graphql/blob/master/create-schemas/README.md#configuration-file-format the create-schemas script can overlay virtual fields into the raw schemas that it downloads. This makes it possible to configure, for example, a virtual field for holdings within an instance:

However, this expands to an overlay includes a single record as result of the search instanceId=id. That's OK for virtual fields of the form "the instance that this holdings record pertains to", but not for the case above, which is "the set of holdings records that pertain to this instance".

We need syntax to have create-schemas make an array-types field.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Mike Taylor February 24, 2023 at 12:24 PM

An array is specified by appending [] to the schema name, thus:

 

Done

Details

Assignee

Reporter

Priority

Development Team

Thor

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 24, 2023 at 11:41 AM
Updated February 24, 2023 at 3:33 PM
Resolved February 24, 2023 at 12:24 PM
TestRail: Cases
TestRail: Runs