Pierre Noël
6d825fc3ca
fix count with sort param
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-24 15:06:38 +02:00
Pierre Noël
10092f5a57
refacto
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-01 11:59:33 +02:00
Pierre Noël
25bfb7204f
fix search for numbers for mongoDB < 4.2.0
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-06-30 16:51:31 +02:00
Pierre Noël
950a21469f
add filtering to search route
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-06-30 15:50:52 +02:00
Pierre Noël
7c837cde6c
refacto
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-04-30 19:47:03 +02:00
Pierre Noël
115600f1aa
search for mongodbId if the query is a mongodbId
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-04-30 19:47:03 +02:00
Pierre Noël
015480b1b5
Change search logic
...
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-04-30 19:47:02 +02:00
Marvin König
4e70d6665c
Fix relation detection for components ( #5713 )
...
This fixes the deleteOldComponents function in the
strapi-connector-mongoose package. This needs to be done, as the id can
be either a string or a Buffer at this point.
Signed-off-by: Marvin König <dev@mkqavi.com>
2020-04-17 16:51:25 +02:00
soupette
38b7823b34
Merge branch 'develop' of github.com:strapi/strapi into features/media-lib
2020-03-26 08:01:22 +01:00
Diogo Correia
400893fd6a
Prevent error when content type doesn't have searchable fields
...
Signed-off-by: Diogo Correia <me@diogotc.com>
2020-03-23 14:36:58 +00:00
Diogo Correia
684c65ab2e
Add 'UID' field search to Mongoose
...
Signed-off-by: Diogo Correia <me@diogotc.com>
2020-03-23 14:36:58 +00:00
Alexandre Bodin
c8de166051
Add deleteRelations logic in connectors
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-20 11:04:23 +01:00
Pierre Noël
a1774db410
return null instead of promise
...
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-09 17:22:36 +01:00
Pierre Noël
b5f9795dbc
small refacto of findOne + fix deleteMany of connector-mongoose
...
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-09 12:09:43 +01:00
Pierre Noël
b5ec9cb1c8
handle unexpected params from koa-router
...
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-06 19:16:51 +01:00
Pierre Noël
c0d9dd26d1
Fix findOne with PK as one of the params
...
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-06 09:08:20 +01:00
Alexandre Bodin
77e5b8233d
Fix mongoose dz delete query
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-01-22 17:54:59 +01:00
Alexandre Bodin
c8dbacbba4
Fix mongo ref need an id instead of an object
2019-12-11 16:38:57 +01:00
Alexandre Bodin
3a0df72b4a
Fix hasPK & getPK
2019-11-26 18:19:52 +01:00
Alexandre Bodin
06cf8440f1
Support delete
2019-11-26 11:31:54 +01:00
Alexandre Bodin
50e35f1026
Support updates
2019-11-26 11:24:00 +01:00
Alexandre Bodin
f82b05dc94
Support creation
2019-11-26 09:53:18 +01:00
Alexandre Bodin
bd188d2bfb
Add validation rule of repeatable component to mongo connector
2019-11-15 12:20:52 +01:00
Alexandre Bodin
b9122edf0d
Rename groups to components
2019-11-13 18:49:02 +01:00
Alexandre Bodin
66b2d4f5c3
Init
2019-10-23 17:02:23 +02:00