[service] name = "bikes" [[service.data_sources]] [service.data_sources.Mongo] name = "bikes_db" uri = "mongodb://subgraph_mongo:subgraph_mongo@127.0.0.1:27017/subgraph_mongo" db = "subgraph_mongo" [[service.entities]] name = "Bike" [service.entities.data_source] from = "bikes_db" collection = "bikes" [[service.entities.fields]] name = "_id" scalar = "ObjectID" required = true exclude_from_input = ["CreateOne", "UpdateOne"] [[service.entities.fields]] name = "color" scalar = "String" required = true [[service.entities.fields]] name = "type" scalar = "String" required = true [[service.entities.fields]] name = "in_stock" scalar = "Boolean" required = true [[service.entities.fields]] name = "size" scalar = "Int" required = true