-
Notifications
You must be signed in to change notification settings - Fork 11
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
Create GraphQL endpoint, leveraging neo4j graphql library v3 #4
Comments
after doing a bit of research, a few things are clear.
Game Changerhttps://neo4j.com/docs/graphql-manual/current/type-definitions/interfaces/#_directive_inheritance
interface Production {
title: String!
actors: [Actor!]! @relationship(type: "ACTED_IN", direction: IN, properties: "ActedIn")
}
type Movie implements Production {
title: String!
actors: [Actor!]!
runtime: Int!
}
type Series implements Production {
title: String!
actors: [Actor!]!
episodes: Int!
}
interface ActedIn @relationshipProperties {
role: String!
}
type Actor {
name: String!
actedIn: [Production!]! @relationship(type: "ACTED_IN", direction: OUT, properties: "ActedIn")
} https://neo4j.com/docs/graphql-manual/current/type-definitions/interfaces/#_overriding
interface Content
@auth(rules: [{ operations: [CREATE, UPDATE, DELETE], allow: { author: { username: "$jwt.sub" } } }]) {
title: String!
author: [Author!]! @relationship(type: "HAS_CONTENT", direction: IN)
}
type User {
username: String!
content: [Content!]! @relationship(type: "HAS_CONTENT", direction: OUT)
}
type PublicContent implements Content {
title: String!
author: [Author!]!
}
type PrivateContent implements Content
@auth(rules: [{ operations: [CREATE, READ, UPDATE, DELETE], allow: { author: { username: "$jwt.sub" } } }]) {
title: String!
author: [Author!]!
} |
* Flat: latest data (2022-07-15T00:05:18.517Z) { "date": "2022-07-15T00:05:18.517Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": -415, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": -209, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-16T00:05:37.097Z) { "date": "2022-07-16T00:05:37.097Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 10943, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 9687, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-17T00:04:46.190Z) { "date": "2022-07-17T00:04:46.190Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 248, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 54, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-18T00:04:51.054Z) { "date": "2022-07-18T00:04:51.054Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 240, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 176, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * GraphQL is the source of data mode truth - add landscape-graph-core-schema.gql = put in place sgp extensibility mechanism * #4 * #2 * #42 Signed-off-by: Matt Young <halcyondude@gmail.com> * Sub-Graph Packs: data model extensibility Related to: #2 #4 Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: grandstack blogs Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: Cloud Native Application Bundles Related to https://github.com/cncf/landscape-graph/issues/42∑ Signed-off-by: Matt Young <halcyondude@gmail.com> * sgp --> sgm, misc docs Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: initial project creation Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * add: github.com GraphQL schema SDL octokit/graphql-schema@34d7f06 Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] Basic fed2 boilerplate example, references Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] remove Angular sample app prototype Signed-off-by: Matt Young <halcyondude@gmail.com> Co-authored-by: flat-data <flat-data@users.noreply.github.com>
* Flat: latest data (2022-07-15T00:05:18.517Z) { "date": "2022-07-15T00:05:18.517Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": -415, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": -209, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-16T00:05:37.097Z) { "date": "2022-07-16T00:05:37.097Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 10943, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 9687, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-17T00:04:46.190Z) { "date": "2022-07-17T00:04:46.190Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 248, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 54, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-18T00:04:51.054Z) { "date": "2022-07-18T00:04:51.054Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 240, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 176, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * GraphQL is the source of data mode truth - add landscape-graph-core-schema.gql = put in place sgp extensibility mechanism * #4 * #2 * #42 Signed-off-by: Matt Young <halcyondude@gmail.com> * Sub-Graph Packs: data model extensibility Related to: #2 #4 Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: grandstack blogs Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: Cloud Native Application Bundles Related to https://github.com/cncf/landscape-graph/issues/42∑ Signed-off-by: Matt Young <halcyondude@gmail.com> * sgp --> sgm, misc docs Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: initial project creation Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * add: github.com GraphQL schema SDL octokit/graphql-schema@34d7f06 Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] Basic fed2 boilerplate example, references Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] remove Angular sample app prototype Signed-off-by: Matt Young <halcyondude@gmail.com> Co-authored-by: flat-data <flat-data@users.noreply.github.com>
* Flat: latest data (2022-07-15T00:05:18.517Z) { "date": "2022-07-15T00:05:18.517Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": -415, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": -209, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-16T00:05:37.097Z) { "date": "2022-07-16T00:05:37.097Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 10943, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 9687, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-17T00:04:46.190Z) { "date": "2022-07-17T00:04:46.190Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 248, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 54, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-18T00:04:51.054Z) { "date": "2022-07-18T00:04:51.054Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 240, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 176, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * GraphQL is the source of data mode truth - add landscape-graph-core-schema.gql = put in place sgp extensibility mechanism * #4 * #2 * #42 Signed-off-by: Matt Young <halcyondude@gmail.com> * Sub-Graph Packs: data model extensibility Related to: #2 #4 Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: grandstack blogs Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: Cloud Native Application Bundles Related to https://github.com/cncf/landscape-graph/issues/42∑ Signed-off-by: Matt Young <halcyondude@gmail.com> * sgp --> sgm, misc docs Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: initial project creation Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * add: github.com GraphQL schema SDL octokit/graphql-schema@34d7f06 Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] Basic fed2 boilerplate example, references Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] remove Angular sample app prototype Signed-off-by: Matt Young <halcyondude@gmail.com> Co-authored-by: flat-data <flat-data@users.noreply.github.com> Signed-off-by: Matt Young <halcyondude@gmail.com>
* Flat: latest data (2022-07-15T00:05:18.517Z) { "date": "2022-07-15T00:05:18.517Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": -415, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": -209, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-16T00:05:37.097Z) { "date": "2022-07-16T00:05:37.097Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 10943, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 9687, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-17T00:04:46.190Z) { "date": "2022-07-17T00:04:46.190Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 248, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 54, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-18T00:04:51.054Z) { "date": "2022-07-18T00:04:51.054Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 240, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 176, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * GraphQL is the source of data mode truth - add landscape-graph-core-schema.gql = put in place sgp extensibility mechanism * #4 * #2 * #42 Signed-off-by: Matt Young <halcyondude@gmail.com> * Sub-Graph Packs: data model extensibility Related to: #2 #4 Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: grandstack blogs Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: Cloud Native Application Bundles Related to https://github.com/cncf/landscape-graph/issues/42∑ Signed-off-by: Matt Young <halcyondude@gmail.com> * sgp --> sgm, misc docs Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: initial project creation Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * add: github.com GraphQL schema SDL octokit/graphql-schema@34d7f06 Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] Basic fed2 boilerplate example, references Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] remove Angular sample app prototype Signed-off-by: Matt Young <halcyondude@gmail.com> Co-authored-by: flat-data <flat-data@users.noreply.github.com> Signed-off-by: Matt Young <halcyondude@gmail.com>
* Flat: latest data (2022-07-15T00:05:18.517Z) { "date": "2022-07-15T00:05:18.517Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": -415, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": -209, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-16T00:05:37.097Z) { "date": "2022-07-16T00:05:37.097Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 10943, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 9687, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-17T00:04:46.190Z) { "date": "2022-07-17T00:04:46.190Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 248, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 54, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-18T00:04:51.054Z) { "date": "2022-07-18T00:04:51.054Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 240, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 176, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * GraphQL is the source of data mode truth - add landscape-graph-core-schema.gql = put in place sgp extensibility mechanism * #4 * #2 * #42 Signed-off-by: Matt Young <halcyondude@gmail.com> * Sub-Graph Packs: data model extensibility Related to: #2 #4 Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: grandstack blogs Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: Cloud Native Application Bundles Related to https://github.com/cncf/landscape-graph/issues/42∑ Signed-off-by: Matt Young <halcyondude@gmail.com> * sgp --> sgm, misc docs Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: initial project creation Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * add: github.com GraphQL schema SDL octokit/graphql-schema@34d7f06 Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] Basic fed2 boilerplate example, references Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] remove Angular sample app prototype Signed-off-by: Matt Young <halcyondude@gmail.com> Co-authored-by: flat-data <flat-data@users.noreply.github.com> Signed-off-by: Matt Young <halcyondude@gmail.com>
* Flat: latest data (2022-07-15T00:05:18.517Z) { "date": "2022-07-15T00:05:18.517Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": -415, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": -209, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-16T00:05:37.097Z) { "date": "2022-07-16T00:05:37.097Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 10943, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 9687, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-17T00:04:46.190Z) { "date": "2022-07-17T00:04:46.190Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 248, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 54, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-18T00:04:51.054Z) { "date": "2022-07-18T00:04:51.054Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 240, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 176, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * GraphQL is the source of data mode truth - add landscape-graph-core-schema.gql = put in place sgp extensibility mechanism * #4 * #2 * #42 Signed-off-by: Matt Young <halcyondude@gmail.com> * Sub-Graph Packs: data model extensibility Related to: #2 #4 Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: grandstack blogs Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: Cloud Native Application Bundles Related to https://github.com/cncf/landscape-graph/issues/42∑ Signed-off-by: Matt Young <halcyondude@gmail.com> * sgp --> sgm, misc docs Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: initial project creation Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * add: github.com GraphQL schema SDL octokit/graphql-schema@34d7f06 Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] Basic fed2 boilerplate example, references Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] remove Angular sample app prototype Signed-off-by: Matt Young <halcyondude@gmail.com> Co-authored-by: flat-data <flat-data@users.noreply.github.com> Signed-off-by: Matt Young <halcyondude@gmail.com>
* Flat: latest data (2022-07-15T00:05:18.517Z) { "date": "2022-07-15T00:05:18.517Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": -415, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": -209, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-16T00:05:37.097Z) { "date": "2022-07-16T00:05:37.097Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 10943, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 9687, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-17T00:04:46.190Z) { "date": "2022-07-17T00:04:46.190Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 248, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 54, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * Flat: latest data (2022-07-18T00:04:51.054Z) { "date": "2022-07-18T00:04:51.054Z", "files": [ { "name": "landscape-items-clean.json", "deltaBytes": 240, "source": "https://landscape.cncf.io/data/items.json" }, { "name": "landscape-items.json", "deltaBytes": 176, "source": "https://landscape.cncf.io/data/items.json" } ] } Signed-off-by: Matt Young <halcyondude@gmail.com> * GraphQL is the source of data mode truth - add landscape-graph-core-schema.gql = put in place sgp extensibility mechanism * #4 * #2 * #42 Signed-off-by: Matt Young <halcyondude@gmail.com> * Sub-Graph Packs: data model extensibility Related to: #2 #4 Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: grandstack blogs Signed-off-by: Matt Young <halcyondude@gmail.com> * resources: Cloud Native Application Bundles Related to https://github.com/cncf/landscape-graph/issues/42∑ Signed-off-by: Matt Young <halcyondude@gmail.com> * sgp --> sgm, misc docs Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: initial project creation Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * apps/panorama: WIP Signed-off-by: Matt Young <halcyondude@gmail.com> * add: github.com GraphQL schema SDL octokit/graphql-schema@34d7f06 Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] Basic fed2 boilerplate example, references Signed-off-by: Matt Young <halcyondude@gmail.com> * [chore] remove Angular sample app prototype Signed-off-by: Matt Young <halcyondude@gmail.com> Co-authored-by: flat-data <flat-data@users.noreply.github.com> Signed-off-by: Matt Young <halcyondude@gmail.com>
GraphQL schema --> source of truth
Tasks
Create GraphQL API endpoint #52
MVP CNCF Schema
use schema to drive data model instantiation --> neo
Moved to new/other issue(s):
More Info
resources
The text was updated successfully, but these errors were encountered: