Support dynamic identifier field names/paths for content entries #10
Labels
config
User config
core
central engine
enhancement
New feature or request
good first issue
Good for newcomers
gql-schema
Pertains to GraphQL schema design/implementation
Milestone
Currently, Flatbread expects there to be an
id
field in the root level of each entry type in order to enable relations and query by ID. Some people may have related data using aslug
field to identify content entries, or even a nested field within each entry likemeta: {id: 'EFJS-34UID'}
.In
flatbread.config.js
, the user should be able to define the path to their identifier field for each content type if it does not match the default behavior of Flatbread as stated above. Some sugar on top of that may be a root level config option to globally change the identifier name for all content entries, like if all entries are related by aslug
oruuid
field rather thanid
, for example.The text was updated successfully, but these errors were encountered: