Orionjs supports special types for common use cases:
Copy
export const SpecialTypesExample = schemaWithName('SpecialTypesExample', { idField: {type: 'ID'}, // String or number ID (typically for database IDs) emailField: {type: 'email'}, // Email with automatic format validation integerField: {type: 'integer'}, // Ensures whole numbers only blackboxField: {type: 'blackbox'} // Any object without specific schema})export type SpecialTypesExampleType = InferSchemaType<typeof SpecialTypesExample>