Add GQL fragments
parent
2922345a60
commit
c7053ac0c7
@ -1,13 +1,15 @@
|
||||
overwrite: true
|
||||
wtach: true
|
||||
schema: "http://localhost:4000/graphql"
|
||||
documents: "src/app/graphqlOperations/*"
|
||||
documents: "src/app/graphqlOperations/**/*"
|
||||
generates:
|
||||
src/generated/graphql.ts:
|
||||
plugins:
|
||||
- "typescript"
|
||||
- "typescript-operations"
|
||||
- "typescript-apollo-angular"
|
||||
config:
|
||||
immutableTypes: false
|
||||
./graphql.schema.json:
|
||||
plugins:
|
||||
- "introspection"
|
||||
|
@ -0,0 +1,5 @@
|
||||
query GetCargoBikeById($id: ID!){
|
||||
cargoBikeById(id: $id) {
|
||||
...CargoBikeFragment
|
||||
}
|
||||
}
|
@ -1,40 +1,5 @@
|
||||
query GetCargoBikes{
|
||||
cargoBikes {
|
||||
id
|
||||
group
|
||||
name
|
||||
events {
|
||||
date
|
||||
}
|
||||
insuranceData {
|
||||
billing
|
||||
}
|
||||
dimensionsAndLoad {
|
||||
bikeLength
|
||||
bikeWeight
|
||||
}
|
||||
numberOfChildren
|
||||
security {
|
||||
frameNumber
|
||||
adfcCoding
|
||||
keyNumberAXAChain
|
||||
keyNumberFrameLock
|
||||
policeCoding
|
||||
}
|
||||
dimensionsAndLoad {
|
||||
bikeHeight
|
||||
bikeLength
|
||||
bikeWeight
|
||||
bikeWidth
|
||||
boxHeight
|
||||
boxLength
|
||||
boxWidth
|
||||
hasCoverBox
|
||||
lockable
|
||||
maxWeightBox
|
||||
maxWeightLuggageRack
|
||||
maxWeightTotal
|
||||
}
|
||||
|
||||
...CargoBikeFragment
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,38 @@
|
||||
fragment CargoBikeFragment on CargoBike {
|
||||
id
|
||||
group
|
||||
name
|
||||
events {
|
||||
date
|
||||
}
|
||||
insuranceData {
|
||||
billing
|
||||
}
|
||||
dimensionsAndLoad {
|
||||
bikeLength
|
||||
bikeWeight
|
||||
}
|
||||
numberOfChildren
|
||||
security {
|
||||
frameNumber
|
||||
adfcCoding
|
||||
keyNumberAXAChain
|
||||
keyNumberFrameLock
|
||||
policeCoding
|
||||
}
|
||||
dimensionsAndLoad {
|
||||
bikeHeight
|
||||
bikeLength
|
||||
bikeWeight
|
||||
bikeWidth
|
||||
boxHeight
|
||||
boxLength
|
||||
boxWidth
|
||||
hasCoverBox
|
||||
lockable
|
||||
maxWeightBox
|
||||
maxWeightLuggageRack
|
||||
maxWeightTotal
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue