Skip to content

How to use "to Many" Relationships in Schema #163

Closed
@sebtoombs

Description

@sebtoombs

When attempting to encode a resource that has a relationship to a single other resource (i.e. what is often referred to as a "toOne" resource) the Parser throws the following error:

Schema is not registered for a resource at path "toOneResource"

Note that the error only occurs when the relationship is not empty. If the relationship is empty, the data is generated correctly. (e.g. below)

data: {}

instead of

data: []

Is this a bug, or are "toMany" relationships not supported?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions