diff --git a/libs/shared/lib/mock-data/schema/simpleAirportRaw.ts b/libs/shared/lib/mock-data/schema/simpleAirportRaw.ts new file mode 100644 index 0000000000000000000000000000000000000000..a8524c549d1451709392292257d04661ab2b4ed4 --- /dev/null +++ b/libs/shared/lib/mock-data/schema/simpleAirportRaw.ts @@ -0,0 +1,43 @@ +import { SchemaFromBackend } from '../../schema'; +import { SchemaUtils } from '../../schema/schema-utils'; + +export const simpleSchemaAirportRaw: SchemaFromBackend = { + nodes: [ + { + name: 'airports', + attributes: [ + { name: 'city', type: 'string' }, + { name: 'country', type: 'string' }, + { name: 'lat', type: 'float' }, + { name: 'long', type: 'float' }, + { name: 'name', type: 'string' }, + { name: 'state', type: 'string' }, + { name: 'vip', type: 'bool' }, + ], + } + ], + edges: [ + { + name: 'flights', + from: 'airports', + to: 'airports', + collection: 'flights', + attributes: [ + { name: 'ArrTime', type: 'int' }, + { name: 'ArrTimeUTC', type: 'string' }, + { name: 'Day', type: 'int' }, + { name: 'DayOfWeek', type: 'int' }, + { name: 'DepTime', type: 'int' }, + { name: 'DepTimeUTC', type: 'string' }, + { name: 'Distance', type: 'int' }, + { name: 'FlightNum', type: 'int' }, + { name: 'Month', type: 'int' }, + { name: 'TailNum', type: 'string' }, + { name: 'UniqueCarrier', type: 'string' }, + { name: 'Year', type: 'int' }, + ], + } + ], +}; + +export const simpleSchemaAirport = SchemaUtils.schemaBackend2Graphology(simpleSchemaAirportRaw);