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.
1.1 kB · 42 lines
TypeScript
12345678910111213141516171819202122232425262728293031323334353637383940414243import type { ContrailConfig } from "@atmo-dev/contrail";
export const config: ContrailConfig = { namespace: "rsvp.atmo", collections: { "community.lexicon.calendar.event": { queryable: { mode: {}, name: {}, status: {}, startsAt: { type: "range" }, endsAt: { type: "range" }, createdAt: { type: "range" }, }, searchable: ["name", "description"], relations: { rsvps: { collection: "community.lexicon.calendar.rsvp", groupBy: "status", count: true, groups: { interested: "community.lexicon.calendar.rsvp#interested", going: "community.lexicon.calendar.rsvp#going", notgoing: "community.lexicon.calendar.rsvp#notgoing", }, }, }, }, "community.lexicon.calendar.rsvp": { queryable: { status: {}, "subject.uri": {}, }, references: { event: { collection: "community.lexicon.calendar.event", field: "subject.uri", }, }, }, },};