MCPcopy Index your code
hub / github.com/TanStack/db / userDisplayInfo

Function userDisplayInfo

packages/db/tests/query/composables.test.ts:205–209  ·  view source on GitHub ↗
({ user }: { user: Ref<User> })

Source from the content-addressed store, hash-verified

203 const userIsAdult = ({ user }: { user: Ref<User> }) => gt(user.age, 20)
204
205 const userDisplayInfo = ({ user }: { user: Ref<User> }) => ({
206 userId: user.id,
207 displayName: upper(user.name),
208 contactEmail: user.email,
209 })
210
211 // Create a reusable query using defineQuery that uses the components
212 const adultUsersQuery = new Query()

Callers

nothing calls this directly

Calls 1

upperFunction · 0.85

Tested by

no test coverage detected