Skip to content
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

Add select fields, add toObject #45

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

remoove
Copy link

@remoove remoove commented Feb 18, 2021

Add select fields to each find query, this will be usefull if you set {select: false} in mongoose schema.
Add mongooseObj.toObject method call in stringifyId function for right Decimal128 displaing in admin-bro frontend.

now, if you set {select: false} option in mongoose schema, it would be displayed in the adminbro table
You should set 'get' option in mongoose schema: 
{get: (v)=>v ? Number(v) : v}
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add .idea to .gitignore

@@ -117,5 +117,4 @@ dist

.DS_store

# build files
/lib
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't want to commit lib folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants