Fix Referencetable

urls
Max Ehrlicher-Schmidt 4 years ago
parent 260e105504
commit 693fece04b

@ -24,19 +24,19 @@ mutation CreateCargoBike($bike: CargoBikeCreateInput!) {
mutation UpdateCargoBike($bike: CargoBikeUpdateInput!) { mutation UpdateCargoBike($bike: CargoBikeUpdateInput!) {
updateCargoBike(cargoBike: $bike) { updateCargoBike(cargoBike: $bike) {
...CargoBikeFieldsForTable ...CargoBikeFieldsForPage
} }
} }
mutation LockCargoBike($id: ID!) { mutation LockCargoBike($id: ID!) {
lockCargoBike(id: $id) { lockCargoBike(id: $id) {
...CargoBikeFieldsForTable ...CargoBikeFieldsForPage
} }
} }
mutation UnlockCargoBike($id: ID!) { mutation UnlockCargoBike($id: ID!) {
unlockCargoBike(id: $id) { unlockCargoBike(id: $id) {
...CargoBikeFieldsForTable ...CargoBikeFieldsForPage
} }
} }

@ -4,7 +4,6 @@
[headlineDataPath]="headlineDataPath" [headlineDataPath]="headlineDataPath"
[pageDataGQLType]="pageDataGQLType" [pageDataGQLType]="pageDataGQLType"
[pageDataGQLUpdateInputType]="pageDataGQLUpdateInputType" [pageDataGQLUpdateInputType]="pageDataGQLUpdateInputType"
[propertyNameOfUpdateInput]="propertyNameOfUpdateInput"
(lockEvent)="lock($event)" (lockEvent)="lock($event)"
(saveEvent)="save($event)" (saveEvent)="save($event)"
(cancelEvent)="cancel($event)" (cancelEvent)="cancel($event)"

@ -651,7 +651,7 @@
}, },
{ {
"name": "security", "name": "security",
"description": "Safety is a custom type, that stores information about security features.\nTODO: Should this be called Security?", "description": "Safety is a custom type, that stores information about security features.",
"type": { "type": {
"kind": "NON_NULL", "kind": "NON_NULL",
"name": null, "name": null,
@ -693,7 +693,21 @@
}, },
{ {
"name": "equipmentTypeIds", "name": "equipmentTypeIds",
"description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2", "description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2\nWhen set to null or [], no relations will be added.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "equipmentIds",
"description": "Refers to unique equipment\nWhen set to null or [], no relations will be added.",
"type": { "type": {
"kind": "LIST", "kind": "LIST",
"name": null, "name": null,
@ -771,7 +785,7 @@
{ {
"kind": "INPUT_OBJECT", "kind": "INPUT_OBJECT",
"name": "CargoBikeUpdateInput", "name": "CargoBikeUpdateInput",
"description": "if you want to add bike to a lending station, create a new timeFrame with to: Date = null", "description": "If you want to add bike to a lending station, create a new timeFrame with to: Date = null",
"fields": null, "fields": null,
"inputFields": [ "inputFields": [
{ {
@ -860,7 +874,7 @@
}, },
{ {
"name": "security", "name": "security",
"description": "Safety is a custom type, that stores information about security features.\nTODO: Should this be called Security?", "description": "Safety is a custom type, that stores information about security features.",
"type": { "type": {
"kind": "INPUT_OBJECT", "kind": "INPUT_OBJECT",
"name": "SecurityUpdateInput", "name": "SecurityUpdateInput",
@ -890,7 +904,21 @@
}, },
{ {
"name": "equipmentTypeIds", "name": "equipmentTypeIds",
"description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2\nIf set, ols relations will be over written. Set [] to delete all", "description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2\nWhen set to null, field will be ignored.\nWhen set to [], all relations will be deleted.\nElse all realtions will be deleted and the specified relations will be added.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "equipmentIds",
"description": "Refers to unique equipment\nWhen set to null, field will be ignored.\nWhen set to [], all relations will be deleted.\nElse all realtions will be deleted and the specified relations will be added.",
"type": { "type": {
"kind": "LIST", "kind": "LIST",
"name": null, "name": null,
@ -4488,9 +4516,13 @@
"name": "name", "name": "name",
"description": null, "description": null,
"type": { "type": {
"kind": "SCALAR", "kind": "NON_NULL",
"name": "String", "name": null,
"ofType": null "ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}, },
"defaultValue": null "defaultValue": null
}, },

@ -109,17 +109,22 @@ export type CargoBikeCreateInput = {
forCargo: Scalars['Boolean']; forCargo: Scalars['Boolean'];
forChildren: Scalars['Boolean']; forChildren: Scalars['Boolean'];
numberOfChildren: Scalars['Int']; numberOfChildren: Scalars['Int'];
/** /** Safety is a custom type, that stores information about security features. */
* Safety is a custom type, that stores information about security features.
* TODO: Should this be called Security?
*/
security: SecurityCreateInput; security: SecurityCreateInput;
/** Does not refer to an extra table in the database. */ /** Does not refer to an extra table in the database. */
technicalEquipment: TechnicalEquipmentCreateInput; technicalEquipment: TechnicalEquipmentCreateInput;
/** Does not refer to an extra table in the database. */ /** Does not refer to an extra table in the database. */
dimensionsAndLoad: DimensionsAndLoadCreateInput; dimensionsAndLoad: DimensionsAndLoadCreateInput;
/** Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 */ /**
* Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2
* When set to null or [], no relations will be added.
*/
equipmentTypeIds?: Maybe<Array<Maybe<Scalars['ID']>>>; equipmentTypeIds?: Maybe<Array<Maybe<Scalars['ID']>>>;
/**
* Refers to unique equipment
* When set to null or [], no relations will be added.
*/
equipmentIds?: Maybe<Array<Maybe<Scalars['ID']>>>;
/** Sticker State */ /** Sticker State */
stickerBikeNameState?: Maybe<StickerBikeNameState>; stickerBikeNameState?: Maybe<StickerBikeNameState>;
note?: Maybe<Scalars['String']>; note?: Maybe<Scalars['String']>;
@ -128,7 +133,7 @@ export type CargoBikeCreateInput = {
taxes: TaxesCreateInput; taxes: TaxesCreateInput;
}; };
/** if you want to add bike to a lending station, create a new timeFrame with to: Date = null */ /** If you want to add bike to a lending station, create a new timeFrame with to: Date = null */
export type CargoBikeUpdateInput = { export type CargoBikeUpdateInput = {
id: Scalars['ID']; id: Scalars['ID'];
/** see column A in info tabelle */ /** see column A in info tabelle */
@ -139,10 +144,7 @@ export type CargoBikeUpdateInput = {
forCargo?: Maybe<Scalars['Boolean']>; forCargo?: Maybe<Scalars['Boolean']>;
forChildren?: Maybe<Scalars['Boolean']>; forChildren?: Maybe<Scalars['Boolean']>;
numberOfChildren?: Maybe<Scalars['Int']>; numberOfChildren?: Maybe<Scalars['Int']>;
/** /** Safety is a custom type, that stores information about security features. */
* Safety is a custom type, that stores information about security features.
* TODO: Should this be called Security?
*/
security?: Maybe<SecurityUpdateInput>; security?: Maybe<SecurityUpdateInput>;
/** Does not refer to an extra table in the database. */ /** Does not refer to an extra table in the database. */
technicalEquipment?: Maybe<TechnicalEquipmentUpdateInput>; technicalEquipment?: Maybe<TechnicalEquipmentUpdateInput>;
@ -150,9 +152,18 @@ export type CargoBikeUpdateInput = {
dimensionsAndLoad?: Maybe<DimensionsAndLoadUpdateInput>; dimensionsAndLoad?: Maybe<DimensionsAndLoadUpdateInput>;
/** /**
* Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 * Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2
* If set, ols relations will be over written. Set [] to delete all * When set to null, field will be ignored.
* When set to [], all relations will be deleted.
* Else all realtions will be deleted and the specified relations will be added.
*/ */
equipmentTypeIds?: Maybe<Array<Maybe<Scalars['ID']>>>; equipmentTypeIds?: Maybe<Array<Maybe<Scalars['ID']>>>;
/**
* Refers to unique equipment
* When set to null, field will be ignored.
* When set to [], all relations will be deleted.
* Else all realtions will be deleted and the specified relations will be added.
*/
equipmentIds?: Maybe<Array<Maybe<Scalars['ID']>>>;
/** Sticker State */ /** Sticker State */
stickerBikeNameState?: Maybe<StickerBikeNameState>; stickerBikeNameState?: Maybe<StickerBikeNameState>;
note?: Maybe<Scalars['String']>; note?: Maybe<Scalars['String']>;
@ -613,7 +624,7 @@ export type EquipmentType = {
}; };
export type EquipmentTypeCreateInput = { export type EquipmentTypeCreateInput = {
name?: Maybe<Scalars['String']>; name: Scalars['String'];
description?: Maybe<Scalars['String']>; description?: Maybe<Scalars['String']>;
}; };
@ -1783,7 +1794,7 @@ export type UpdateCargoBikeMutation = (
{ __typename?: 'Mutation' } { __typename?: 'Mutation' }
& { updateCargoBike: ( & { updateCargoBike: (
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
& CargoBikeFieldsForTableFragment & CargoBikeFieldsForPageFragment
) } ) }
); );
@ -1796,7 +1807,7 @@ export type LockCargoBikeMutation = (
{ __typename?: 'Mutation' } { __typename?: 'Mutation' }
& { lockCargoBike: ( & { lockCargoBike: (
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
& CargoBikeFieldsForTableFragment & CargoBikeFieldsForPageFragment
) } ) }
); );
@ -1809,7 +1820,7 @@ export type UnlockCargoBikeMutation = (
{ __typename?: 'Mutation' } { __typename?: 'Mutation' }
& { unlockCargoBike: ( & { unlockCargoBike: (
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
& CargoBikeFieldsForTableFragment & CargoBikeFieldsForPageFragment
) } ) }
); );
@ -2449,10 +2460,10 @@ export const CreateCargoBikeDocument = gql`
export const UpdateCargoBikeDocument = gql` export const UpdateCargoBikeDocument = gql`
mutation UpdateCargoBike($bike: CargoBikeUpdateInput!) { mutation UpdateCargoBike($bike: CargoBikeUpdateInput!) {
updateCargoBike(cargoBike: $bike) { updateCargoBike(cargoBike: $bike) {
...CargoBikeFieldsForTable ...CargoBikeFieldsForPage
} }
} }
${CargoBikeFieldsForTableFragmentDoc}`; ${CargoBikeFieldsForPageFragmentDoc}`;
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
@ -2467,10 +2478,10 @@ export const UpdateCargoBikeDocument = gql`
export const LockCargoBikeDocument = gql` export const LockCargoBikeDocument = gql`
mutation LockCargoBike($id: ID!) { mutation LockCargoBike($id: ID!) {
lockCargoBike(id: $id) { lockCargoBike(id: $id) {
...CargoBikeFieldsForTable ...CargoBikeFieldsForPage
} }
} }
${CargoBikeFieldsForTableFragmentDoc}`; ${CargoBikeFieldsForPageFragmentDoc}`;
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
@ -2485,10 +2496,10 @@ export const LockCargoBikeDocument = gql`
export const UnlockCargoBikeDocument = gql` export const UnlockCargoBikeDocument = gql`
mutation UnlockCargoBike($id: ID!) { mutation UnlockCargoBike($id: ID!) {
unlockCargoBike(id: $id) { unlockCargoBike(id: $id) {
...CargoBikeFieldsForTable ...CargoBikeFieldsForPage
} }
} }
${CargoBikeFieldsForTableFragmentDoc}`; ${CargoBikeFieldsForPageFragmentDoc}`;
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

Loading…
Cancel
Save