-
Given the following schema:
How can I query (using the typescript query builder) all posts that have // Get all posts that have `published_at` set with a datetime.
const query = e.select(e.Post, (post) => ({
title: true,
filter: /** post.published_at is not nullish */
}) |
Beta Was this translation helpful? Give feedback.
Answered by
raddevon
May 18, 2023
Replies: 1 comment 2 replies
-
Use const query = e.select(e.Post, (post) => ({
title: true,
filter: e.op('exists', post.published_at)
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
brielov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
exists
: