Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating To-One Relationships generates plural for resource. #164

Open
0s1r1s opened this issue Oct 23, 2018 · 0 comments
Open

Updating To-One Relationships generates plural for resource. #164

0s1r1s opened this issue Oct 23, 2018 · 0 comments

Comments

@0s1r1s
Copy link

0s1r1s commented Oct 23, 2018

Hi there,

according to the JsonApi specs Updating To-One Relationships I'm trying to build this path /articles/1/relationships/author using devour.

My code lokes like this:

JsonApi.one('article', 1)
        .relationships()
        .all('author')

Which generates: /articles/1/relationships/authors.

Is there a way to generate the singular author?
If I define a collectionPath I would break the pluralize functionality. Same if I disable pluralize.

Cheers and thanks for the nice Plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant