Matthew Slight

Results 23 comments of Matthew Slight

In case this is useful for anybody from the future I implemented such a resolver:- ```javascript MessageTC.addResolver({ name: 'pushToArray', type: MessageTC, args: { id: 'MongoID!', readBy: '[MongoID]' }, resolve: async...

@nodkz FAQ updated and PR sent, I tidied the example up and I didn't use your function wrapper example as per below, as I figured that even though it is...

Can confirm this works. @ethanyuwang Thank you. I modified the functions slightly for my particular use case so that title editing is controlled too, e.g. ```javascript zss_editor.disableContentEditing = function(html) {...

While we are waiting for this feature to be developed - is it possible to achieve a similar result? I known about MongoDB aggregation pipelines - does prisma expose this...

I didn't see that @shukerullah had already done this, but I also updated the library here: https://github.com/mattslight/react-native-progress-bar you can `npm install mattslight/react-native-progress-bar` will be keeping the repo updated there

Here's another example - I followed the structure of the examples above for my own use case. Note that MessageTC has been generated from `composeWithMongoose` from `graphql-compose-mongoose` ```javascript MessageTC.addResolver({ name:...

I've also come up against this error. Sparse unique indexes in MongoDB enforce only non-null values to be unique which is a very handy feature. If i can help with...

suggest to add the feature using the keyword `@sparse` in the schema eg: ``` model Candidate { id String @id @default(auto()) @map("_id") @db.ObjectId firstName String? lastName String? email String? @unique...

Support for either would be great 😊 Implementing a clean method for defining a partial index in the prisma schema would be harder than simply adding a flag to define...

This is where NoSQL and SQL differ slightly. In SQL models a row must fill all values, any values that are 'empty' are set to NULL. There is no concept...