sourcenetwork / docs.source.network

Source Network developer documentation portal
https://docs.source.network
Creative Commons Attribution Share Alike 4.0 International
10 stars 3 forks source link

Consider to use GraphQL types in the singular #119

Open orpheuslummis opened 1 year ago

orpheuslummis commented 1 year ago

IMO, collection names are best expressed as singular for the (most usual) case in which every document represents 'one object'.

Plus it is inconsistently used currently, sometimes it is singular other times plural

fredcarle commented 1 year ago

Technically, since a collection represents a group of objects, it should probably be plural. If we follow GraphQL convention, since we return a list, the name should be plural. The schema however can be singular. How we best achieve that is subject to discussion.