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
While _id is not only ObjectId field in most collection, any other objectId may cause below error:
│ │ │ /usr/local/lib/python3.12/json/encoder.py:180 in default │ │ │ │ 177 │ │ │ │ return JSONEncoder.default(self, o) │ │ 178 │ │ │ │ 179 │ │ """ │ │ ❱ 180 │ │ raise TypeError(f'Object of type {o.__class__.__name__} ' │ │ 181 │ │ │ │ │ │ f'is not JSON serializable') │ │ 182 │ │ │ 183 │ def encode(self, o): │ │ │ │ ╭────────────────────────── locals ──────────────────────────╮ │ │ │ o = ObjectId('637e1e913e9e101f8f9150b5') │ │ │ │ self = <json.encoder.JSONEncoder object at 0x7ab18389f770> │ │ │ ╰────────────────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────╯ TypeError: Object of type ObjectId is not JSON serializable
So, It would be better if we can define stringify some fields right in config.yml, example like this:
- table: picture index: beauty-pictures full: true fields: id: str(id) uid: str(id) description: description category: category
The text was updated successfully, but these errors were encountered:
No branches or pull requests
While _id is not only ObjectId field in most collection, any other objectId may cause below error:
So, It would be better if we can define stringify some fields right in config.yml, example like this:
The text was updated successfully, but these errors were encountered: