圈爷
圈爷
ObjectID should return a fixed type, but now, it could be a string or an ObjectID, A basic principle should be at least that the incoming and outgoing are the...
```js const { GraphQLScalarType, Kind, GraphQLError } = require('graphql') const MONGODB_OBJECTID_REGEX = new RegExp('^[0-9a-fA-F]{24}$') const URL_REGEX = new RegExp('^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&\'\\(\\)\\*\\+,;=.]+$') const { ObjectID } = require('mongodb') const validateObjectId = value =>...
You can just extract the code from ObjectID or let the user pass in an instance
``` node_modules/bson/lib/bson/objectid.js ``` see? Why do you want to reference the entire mongodb? You can use [bson-objectid](https://github.com/williamkapke/bson-objectid), it's 33k,Even if you quote the entire [bson](https://www.npmjs.com/package/bson), it's only 2.5M
It doesn't make sense, In the end, you can specify mongodb as an external module in webPack ::jack_o_lantern:
Dynamic Import? Dependency Injection? Factory pattern? many ways to solve your problem if you wish
Not interested in doing any fix, Because I think this module is badly designed, I plan to rewrite a new
I don't have any ideas, I don't even intend to discuss how to make a bundle with webpack, and I don't care if the package is intended to support ObjectID...
For 1, That's because influxdb doesn't accept null like value now, for example { title: '', message: 'hello' }, but I think this plugin should throw an Error but not...
Confused, The link you post is a client api, so why do you care a client Error? the response data structure could be found [here](https://docs.influxdata.com/influxdb/v1.6/tools/api/), it's clear that it returns...