Comments (5)
@schickling Do you have any thoughts about this? It seems the problem has been raised with Prisma (prisma/prisma1#1772) as well.
from opencrud.
I had that question as well but after discussing it with a couple people I think the conclusion was that this case is rare enough that we can keep the "+s" convention. Also, people can always find their own workaround, like naming the type NewsArticle
instead of just News
for example.
I think adding "all" in the rare cases where the problem does happen is a good solution though.
from opencrud.
We should add this to the specs though. I found a list (not sure it's exhaustive) with all the words which have no plural and where we should use the all
prefix instead.
from opencrud.
That list is far from exhaustive too. Another example is equipment
.
The way we've dealt with it is to throw a helpful error at the application level during startup when there's a plural/singular conflict. Forces the application developer to work around it by renaming.
from opencrud.
Previously I've referenced the list used by Mongoose. In addition to the above, it includes:
cooperation
, deer
, digestion
, energy
, excretion
, expertise
, fish
, health
, justice
, labour
, machinery
, media
, moose
, paper
, pollution
, rain
, rice
, series
, sewage
, sheep
, species
, status
from opencrud.
Related Issues (20)
- @relation
- Link to GitHub
- 404 to CRUD link
- Naming Questions: Multi, Where, Data
- Document UserOrderByInput HOT 5
- Pagination HOT 1
- Full-text search HOT 2
- Directive handling
- Hasura (https://hasura.io)
- Tutorial: Designing a GraphQL API [Link]
- Consider compositional WhereInput's for scalars.
- Links are not working
- Why not use required arrays with non-null items?
- OpenCRUD Roadmap?
- JSONB
- Plural and convention for other language than english
- GraphQL - error actualizar un campo
- Single mutation arguments? HOT 8
- Deleting fields
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 opencrud.