added pathauto, refactored article to load gql directly from path, the vuejs route and drupal route can finally match, HALLELUYA git status

This commit is contained in:
2020-12-24 17:11:51 +01:00
parent ee97e675e3
commit 78155f83b8
12 changed files with 220 additions and 181 deletions

View File

@@ -1,6 +1,10 @@
scalar Violation
type Materiau {
interface NodeInterface {
id: Int!
}
type Materiau implements NodeInterface {
id: Int!
uuid: String!
title: String!
@@ -23,7 +27,7 @@ type Materiau {
samples: [Sample]
}
type Article {
type Article implements NodeInterface {
id: Int!
uuid: String!
title: String!

View File

@@ -1,3 +1,7 @@
extend type Query {
route(path: String!): NodeInterface
}
extend type Query {
materiau(id: Int!): Materiau
}