Skip to content

Pass in slugs to GraphQL relatedTo argument #5143

@dangayle

Description

@dangayle

We need to be able to pass slugs as arguments in GraphQL requests made using the relatedTo query.

This would be essential for things like having a url /blog/cats that makes a request for a list of blogposts related to the cats category. In this case, you won't know the id, so you would have to make two requests to get the list of categories first just to get the id.

Metadata

Metadata

Labels

enhancementimprovements to existing featuresgraphql ⚙️features related to the GraphQL API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions