Comments (4)
+1 experiencing the same issue.
"dependencies": {
"@azure/storage-blob": "^12.17.0",
"@nouance/payload-better-fields-plugin": "^1.3.5",
"@payloadcms/bundler-webpack": "^1.0.6",
"@payloadcms/db-postgres": "^0.x",
"@payloadcms/plugin-cloud-storage": "^1.1.2",
"@payloadcms/plugin-search": "^1.1.0",
"@payloadcms/richtext-lexical": "^0.7.0",
"cross-env": "^7.0.3",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"payload": "^2.11.2"
},
![Screen Shot 2024-04-05 at 5 58 23 PM](https://private-user-images.githubusercontent.com/3254957/320167384-036a85f4-5693-49c5-9f6a-4cec8bf06c54.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTYyMDc0OTQsIm5iZiI6MTcxNjIwNzE5NCwicGF0aCI6Ii8zMjU0OTU3LzMyMDE2NzM4NC0wMzZhODVmNC01NjkzLTQ5YzUtOWY2YS00Y2VjOGJmMDZjNTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjBUMTIxMzE0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmM2MzBhNTBlMmM0NjA4ODY1ZmFkODliOTVjNjFhOTI4ODZmMWI5OWI3NzcwNjdiMmEzZjA3MzEwZjgwN2FjYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.TDWa3EGU_C4BDt5tMzy-SnBpCdW4lpe-MCsYgNk21ds)
from payload.
I did some investigating and it seems like the issue actually originates within the db-mongodb
adaptor, although haven't been able to pinpoint where.
from payload.
Looking at the code in db-mongodb
it's clear that relationTo
isn't a supported operation and so is completely ignored by parseParams
, buildSearchParam
, etc., due to not being a included in validOperators
or in the operatorMap
.
It seems like the issue actually stems from the generation of the collection's schema, since relationTo
should actually contain an operator when used within a where
query.
The Search_where
inputs are defined as
input Search_where {
title: Search_title_operator
priority: Search_priority_operator
doc: Search_doc_Relation
updatedAt: Search_updatedAt_operator
createdAt: Search_createdAt_operator
id: Search_id_operator
AND: [Search_where_and]
OR: [Search_where_or]
}
input Search_doc_Relation {
relationTo: Search_doc_Relation_RelationTo
value: JSON
}
enum Search_doc_Relation_RelationTo {
articles
artists
episodes
hosts
programs
trackPlays
}
where in reality it should be something like
input Search_where {
title: Search_title_operator
priority: Search_priority_operator
doc: Search_doc_Relation
updatedAt: Search_updatedAt_operator
createdAt: Search_createdAt_operator
id: Search_id_operator
AND: [Search_where_and]
OR: [Search_where_or]
}
input Search_doc_Relation {
relationTo: Search_doc_Relation_RelationTo_operator
value: JSON
}
input Search_doc_Relation_RelationTo_operator {
equals: Search_doc_Relation_RelationTo
not_equals: Search_doc_Relation_RelationTo
like: Search_doc_Relation_RelationTo
contains: Search_doc_Relation_RelationTo
in: [Search_doc_Relation_RelationTo]
not_in: [Search_doc_Relation_RelationTo]
all: [Search_doc_Relation_RelationTo]
exists: Boolean
}
enum Search_doc_Relation_RelationTo {
articles
artists
episodes
hosts
programs
trackPlays
}
from payload.
Closed in favour of #6399
from payload.
Related Issues (20)
- Broken Link HOT 1
- Illustrator file is not uploadable HOT 1
- Breaking: MongoDb - Versions cast the "parent" key incorrectly
- [3.0.0-beta.30] Error: Only plain objects, and a few built-ins, can be passed to Client Components from Server Components HOT 5
- [v3.0.0-beta.32] Has Many - Polymorphic Relationship Field ID Conflicts Across Collections Using PostgreSQL Adapter
- Can't Filter by Related Field? Postgres Bug? HOT 1
- Cloud storage plugin socket usage at capacity HOT 1
- No scroll to error when saving within globals or collections
- Can't change page size in drawer
- [v3.0.0-beta32] Host is always localhost even on vercel
- [3.0.0-beta.32] CORS error in upload collection in live preview HOT 1
- Incorrect GraphQL Where schemas generated for Relation fields
- [3.0.0-beta.32] Duplicating block issues with blocks field type
- [3.0.0-beta.32] Issue with Payload on an existing nextjs app while changing its admin and api paths
- `field.admin.disableListColumn` has no effect if the field is nested inside a row field
- Displayed validation error gets stuck HOT 1
- [3.0.0-beta.34] incorrect import of `isHotkey` in richtext-slate plugin HOT 1
- [3.0] - Plugin SEO - Clicking "choose existing" image crashes the frontend
- [3.0.0-beta.34] Error with Payload config validation on field "admin.meta"
- Missing "id" property in adminThumbnail's doc parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payload.