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

[BUG]: .entry('uid')/.asset('uid') doesn't work #2

Closed
iyerrama29 opened this issue Aug 12, 2019 · 2 comments
Closed

[BUG]: .entry('uid')/.asset('uid') doesn't work #2

iyerrama29 opened this issue Aug 12, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@iyerrama29
Copy link
Contributor

iyerrama29 commented Aug 12, 2019

Describe the bug

  • .entry(uid) doesn't work
  • .asset(uid) doesn't work

To Reproduce
Query a content type/asset
In the query, enter the entry's uid/asset's uid

Notice: The result is empty.

Query

Stack.contentType('blog')
  .entry({uid})

// OR

Stack.asset({uid})

Expected behavior
The query should return an object, if it exists

Workarounds
Use raw .query() for list-entries OR .entry()/.asset() without on singleton-content type

// example 1: On multiple content type
Stack.contentType('blog')
  .entries()
  .query({uid: {uid}})

// OR

Stack.assets()
  .query({uid: {uid}})
// example 2: On singleton content type
Stack.contentType('blog')
  .entry()

// OR

Stack.asset()

Regards,
Ramanathan K

@iyerrama29 iyerrama29 added the bug Something isn't working label Aug 12, 2019
@iyerrama29 iyerrama29 changed the title [BUG]: .entry('uid') doesn't work [BUG]: .entry('uid')/.asset('uid') doesn't work Aug 12, 2019
iyerrama29 added a commit that referenced this issue Aug 13, 2019
@iyerrama29
Copy link
Contributor Author

A quick update

  • The above issue's patch will be part of hotfix/1.0.2 release.
  • Along with the above, .schema(uid) has also been fixed

@iyerrama29
Copy link
Contributor Author

Closing this. The has been fixed in hotfix/1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants