-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environments (a.k.a. groups of things) #311
Comments
Hey @JakeHartnell . I'm starting to take a look at this, and was wondering how environments should be implemented. Are they simply a collection of constants? |
Yes. I think it would be simply be an extension of the thing schema. See: https://github.com/aruntk/grow-graphql-api/blob/master/src/schema/things.js We could modify it to have something like a export const ThingSchema = [`
type subThings {
// a list of things.
}
scalar Date
type Thing {
_id: String!
uuid: String!
token: String,
owner: String,
component: String,
name : String,
onlineSince: Boolean,
contains: subThings,
properties: Object,
registeredAt: Date
}
`,
]; Eventually we'll need some UI for grouping things into "Environments". |
We're going to be switching to GraphQL soon #315, I'm currently reading through this: http://graphql.org/learn/queries/ |
gotcha. Should the code for |
Environments are simply a collection of things.
An environment such as a grow room or greenhouse might contain the following:
Environments are ways to group things together.
The text was updated successfully, but these errors were encountered: