MCPcopy Create free account
hub / github.com/TanStack/db / joinedUserPostPredicate

Function joinedUserPostPredicate

packages/db/tests/query/composables.test.ts:391–397  ·  view source on GitHub ↗
({
        u,
        p,
      }: {
        u: Ref<User>
        p: Ref<Post>
      })

Source from the content-addressed store, hash-verified

389 gt(user.age, 20)
390
391 const joinedUserPostPredicate = ({
392 u,
393 p,
394 }: {
395 u: Ref<User>
396 p: Ref<Post>
397 }) => and(eq(u.active, true), eq(p.published, true))
398
399 const singleUserSelect = ({ user }: { user: Ref<User> }) => ({
400 name: user.name,

Callers

nothing calls this directly

Calls 2

andFunction · 0.70
eqFunction · 0.70

Tested by

no test coverage detected