We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const entities = new Map(); entities.set('User', { type: 'object', properties: { job: 'string', name: 'string', tasks: { type: 'reference', many: 'Task' }, currentTask: { type: 'reference', one: 'Task' } } }); entities.set('Task', { type: 'object', properties: { ends: 'date', name: 'string' } }); const date = () => ({ kind: 'scalar', test: sample => new Date(sample) ? true : false, // ... Other custom type logic }); const namespace = new Namespace({ date }, entities); const plan = { type: 'object', properties: { users: { type: 'array', items: ['User'] } } } // May be just 'User' new Schema(plan, { namespace });
The text was updated successfully, but these errors were encountered:
Implemented at v0.1.0 version
Sorry, something went wrong.
shuritch
Successfully merging a pull request may close this issue.
Describe the problem
The text was updated successfully, but these errors were encountered: