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:
@@ -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!
|
||||
|
@@ -1,3 +1,7 @@
|
||||
extend type Query {
|
||||
route(path: String!): NodeInterface
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
materiau(id: Int!): Materiau
|
||||
}
|
||||
|
Reference in New Issue
Block a user