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

Function userPostJoinInfo

packages/db/tests/query/composables.test.ts:252–265  ·  view source on GitHub ↗
({
        user,
        post,
      }: {
        user: Ref<User>
        post: Ref<Post>
      })

Source from the content-addressed store, hash-verified

250 eq(post.published, true)
251
252 const userPostJoinInfo = ({
253 user,
254 post,
255 }: {
256 user: Ref<User>
257 post: Ref<Post>
258 }) => ({
259 authorId: user.id,
260 authorName: upper(user.name),
261 authorEmail: user.email,
262 postId: post.id,
263 postTitle: post.title,
264 postContent: post.content,
265 })
266
267 // Create a query that uses the components in a join
268 const liveCollection = createLiveQueryCollection({

Callers

nothing calls this directly

Calls 1

upperFunction · 0.85

Tested by

no test coverage detected