orm
Here are 457 public repositories matching this topic...
-
Updated
Sep 22, 2020 - JavaScript
what is prefer way to add relation and remove relation? I found example as below, but I did't find any document about the two methods.
case 'ADD_AUTHOR_TO_BOOK':
Book.withId(action.payload.bookId).authors.add(action.payload.author); // add new entity , add relation? this doesn't work.
break;
case 'REMOVE_AUTHOR_FROM_BOOK':
Book.withId(action.payload.bo
-
Updated
Sep 13, 2020 - JavaScript
-
Updated
Nov 9, 2020 - JavaScript
-
Updated
Sep 6, 2020 - JavaScript
-
Updated
Jun 6, 2020 - JavaScript
-
Updated
Nov 12, 2020 - JavaScript
@bajtos suggested to provide strongly typed context types based on the hook name.
For example:
export interface AccessHookContext<T extends typeof PersistedModel> {
Model: T;
query: Filter<T>;
}
export type Listener<Ctx> = (ctx: Ctx, next: (err?: any) => void) => void;
class Persi-
Updated
Dec 29, 2017 - JavaScript
-
Updated
Apr 14, 2020 - JavaScript
-
Updated
Oct 8, 2020 - JavaScript
-
Updated
Dec 4, 2017 - JavaScript
Feature request:
Select builders are often used in sub query with aliases.
It would be a nice syntax addition if instead of using an object we could output the builder with a alias directly thanks to an as method
//currently
sh.select().from({
as:'foo',
value:sh.select().from('users').where('age','>',42).noop()
});could be written:
sh.sele-
Updated
Oct 20, 2020 - JavaScript
-
Updated
Nov 3, 2020 - JavaScript
-
Updated
Oct 17, 2019 - JavaScript
-
Updated
Dec 1, 2020 - JavaScript
-
Updated
Oct 26, 2020 - JavaScript
-
Updated
Nov 28, 2020 - JavaScript
Improve this page
Add a description, image, and links to the orm topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the orm topic, visit your repo's landing page and select "manage topics."
Issue Description
While using model.bulkCreate, as we pass the options, an object which contains transaction, it comes modified after the execution
What are you doing?
We have called bulk