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

Allow querying by entryId in headless CMS read api. #1404

Closed
jimjoes opened this issue Feb 3, 2021 · 11 comments
Closed

Allow querying by entryId in headless CMS read api. #1404

jimjoes opened this issue Feb 3, 2021 · 11 comments

Comments

@jimjoes
Copy link
Contributor

jimjoes commented Feb 3, 2021

  • Feature request

Detailed Description

Let’s say I’m using getArticles query (to get a single item from my Articles model).
Get queries expect a primary key so they can fetch the specific item.

With articles etc, title etc can be changed by the user, and the CMS modifies the ID on each publish/save. We need a way to uniquely identify an article for the purposes of the query, that doesn’t change when changes are saved/published

Possible Solution

As discussed, allow query by entryId via the read API.

@webiny-bot
Copy link
Collaborator

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@webiny-bot webiny-bot added the stale-issue This label is automatically assigned to issues that have no activity for at least 60 days. label Apr 5, 2021
@Pavel910
Copy link
Collaborator

To add more context to this issue, here's an example from the Playground:
image

I think we should simply allow querying by entryId, without the revision part. It should return the latest published record.
Also, it would be useful to expose some kind of _entryId field, so consumers of the API don't have to manipulate the id string themselves.

@Pavel910 Pavel910 reopened this Apr 12, 2021
@webiny-bot webiny-bot removed the stale-issue This label is automatically assigned to issues that have no activity for at least 60 days. label Apr 13, 2021
@jimjoes
Copy link
Contributor Author

jimjoes commented Apr 19, 2021

Hello! Do you have an idea yet what release, if any, this might end up in?

@Pavel910
Copy link
Collaborator

@econtentmaps no idea :) It will eventually.

@brunozoric
Copy link
Contributor

This is resolved with #1660.

@yk-company
Copy link

I have the same problem in v5.39.2

@brunozoric
Copy link
Contributor

hi @yk-company
it is possible to filter by entryId or id. contact us on https://webiny-community.slack.com/ if you have problems with this filter.

@yk-company
Copy link

yk-company commented Mar 19, 2024

I do not have access to the slack, but it worked with entryId, sorry for wasting your time. (I thought entryId was a free text field to set our own Id system)

@brunozoric
Copy link
Contributor

@yk-company
you can register and ask questions there.

@yk-company
Copy link

yk-company commented Mar 19, 2024

I would be able to register if I had an email coming from these domaines :

  • webiny.com
  • musth.io
  • guildeducation.com
  • groundfog.cloud
  • influencemachines.com
  • asco.org
  • panasonic.aero
  • robotsandpencils.com
  • freshcells.de

But I don't, so I have te ask an administrator to send me an invitation (it's the message that I got when trying to register).
But thank you very much for your help.

@SvenAlHamad
Copy link
Contributor

@yk-company just use this link to register, all domains are accepted: https://www.webiny.com/slack

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

6 participants