Comments (2)
Hey
Good feature request.
You can add a whereType
to the document field: https://github.com/birkir/prime/blob/master/packages/prime-field-document/src/PrimeFieldDocument.ts
Good template is the group field: https://github.com/birkir/prime/blob/master/packages/prime-field-group/src/PrimeFieldGroup.ts
If you need to add something to the where builder: https://github.com/birkir/prime/blob/master/packages/prime-core/src/modules/external/utils/documentWhereBuilder.ts
Let me know if you need help!
from prime.
Hey @birkir !
We're trying to implement this very feature for our usage of prime (to find articles by a given category, categories being contentTypes of their own, and considering categories could be multiple).
I've managed to define the whereType, but I'm having a hard time listing the fields, and connecting the dots in the query to get the right results, I think I'm missing too many bits of code here and there.
I tried looking at what prismic is doing, but they don't seem to be relying on the same logic (I'm seeing linked documents in their doc), so I'm a little clueless.
Can I ask you for a little more direction?
Thanks!
from prime.
Related Issues (20)
- Question: Master Detail document HOT 2
- Error: Cannot find module '@primecms/field' HOT 3
- Field select returns single value when graphql expects iterable value HOT 2
- Apollo Federation
- Question: backend HOT 2
- user.meta is not a function HOT 1
- npx @primecms/cli init
- Unable to start primecms: column cnst.consrc does not exist HOT 7
- Prime
- Separate Tables per Content Type HOT 3
- Unable to start Prime CMS HOT 1
- Consider to generalize building admin ui forms with jsonschema
- Heroku deployment fails HOT 2
- starting prime not working? HOT 1
- Compile error
- Heroku Deployment Error
- what is the purpose of serving the UI via the core? HOT 1
- Status of this project? HOT 5
- Typescript error in compiling fields
- Cannot Open/Start/View the app on Heroku
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 prime.