forked from Haxe-Nodejs/node-api
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
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
Build Mongoose Schema with options #22
Comments
Wow, you're fast! Thanks a lot |
⚡ , but untested :D |
@:schemaOptions({
minimize: false
})
class State extends Model<StateData>{}
class StateManager extends Manager<StateData, State>{} state.create({_id: prefix, answers: new DynamicObject<String>()}, function(err, r){
if(err != null)
trace("Error: "+err);
else
trace("Result: "+r);
}); works for me! Great job ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice if the
Manager
could takeSchemaOptions
so even when the schema is auto-generated by the macro, it takes those options.Maybe by giving it to the
build()
method?The text was updated successfully, but these errors were encountered: