Demonstration bridge between ATproto and GraphQL. Generate schema types and interface with the ATmosphere via GraphQL queries. Includes a TypeScript server with IDE.
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: skip Unknown types

Tim Ryan 38423634 b132bbc6

+5 -2
+5 -2
src/generateLexiconSchema.ts
··· 50 50 "at-identifier": "ID", 51 51 }; 52 52 53 - const SKIP_FIELDS = new Set(["debug", "embed"]); // Fields to skip in GraphQL output 53 + const SKIP_FIELDS = new Set(["debug"]); // Fields to skip in GraphQL output 54 54 55 55 function resolveLexiconPath(lexiconPath: LexiconPath): string { 56 56 const dirParts = lexiconPath.segments; ··· 187 187 188 188 const isRequired = requiredFields.has(fieldName); 189 189 const graphqlType = lexTypeToGraphQLType(typeName, fieldDef, isRequired); 190 - graphqlLines.push(` ${fieldName}: ${graphqlType}`); 190 + // TODO better resolve "Unknown" types 191 + if (!graphqlType.startsWith("Unknown")) { 192 + graphqlLines.push(` ${fieldName}: ${graphqlType}`); 193 + } 191 194 } 192 195 } 193 196