You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my scheme is the same like the example
[
{singular: 'author', plural: 'authors', relations: { books: {hasMany: 'book'}}},
{singular: 'book', plural: 'books', relations: {author: {belongsTo: 'author'}}}
]
at some point in the app i created an author
db.rel.save('authors', {id: '1', name: 'Administrador', email: 'admin@mail.com', username: 'admin', password: 'xxx'})
like in the real world does not have any Post
when the author add new post does not have the related id
my scheme is the same like the example
[
{singular: 'author', plural: 'authors', relations: { books: {hasMany: 'book'}}},
{singular: 'book', plural: 'books', relations: {author: {belongsTo: 'author'}}}
]
at some point in the app i created an author
db.rel.save('authors', {id: '1', name: 'Administrador', email: 'admin@mail.com', username: 'admin', password: 'xxx'})
like in the real world does not have any Post
when the author add new post does not have the related id
db.rel.find('authors')
but what expected to see
The text was updated successfully, but these errors were encountered: