Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/contrail. atproto backend in a bottle flo-bit.dev/contrail
Something went wrong. Try again.
TypeScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445import type { ContrailConfig } from "@atmo-dev/contrail";
export const config: ContrailConfig = { namespace: "rsvp.atmo", collections: { event: { collection: "community.lexicon.calendar.event", queryable: { mode: {}, name: {}, status: {}, startsAt: { type: "range" }, endsAt: { type: "range" }, createdAt: { type: "range" }, }, searchable: ["name", "description"], relations: { rsvps: { collection: "rsvp", groupBy: "status", count: true, groups: { interested: "community.lexicon.calendar.rsvp#interested", going: "community.lexicon.calendar.rsvp#going", notgoing: "community.lexicon.calendar.rsvp#notgoing", }, }, }, }, rsvp: { collection: "community.lexicon.calendar.rsvp", queryable: { status: {}, "subject.uri": {}, }, references: { event: { collection: "event", field: "subject.uri", }, }, }, },};