Skip to content

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

@iyerrama29

Description

@iyerrama29

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions