diff --git a/examples/getstarted/api/rocketship/config/routes.json b/examples/getstarted/api/rocketship/config/routes.json deleted file mode 100644 index c4efcf285d..0000000000 --- a/examples/getstarted/api/rocketship/config/routes.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "routes": [ - { - "method": "GET", - "path": "/rocketships", - "handler": "Rocketship.find", - "config": { - "policies": [] - } - }, - { - "method": "GET", - "path": "/rocketships/count", - "handler": "Rocketship.count", - "config": { - "policies": [] - } - }, - { - "method": "GET", - "path": "/rocketships/:id", - "handler": "Rocketship.findOne", - "config": { - "policies": [] - } - }, - { - "method": "POST", - "path": "/rocketships", - "handler": "Rocketship.create", - "config": { - "policies": [] - } - }, - { - "method": "PUT", - "path": "/rocketships/:id", - "handler": "Rocketship.update", - "config": { - "policies": [] - } - }, - { - "method": "DELETE", - "path": "/rocketships/:id", - "handler": "Rocketship.delete", - "config": { - "policies": [] - } - } - ] -} diff --git a/examples/getstarted/api/rocketship/controllers/Rocketship.js b/examples/getstarted/api/rocketship/controllers/Rocketship.js deleted file mode 100644 index 73c6f64c3f..0000000000 --- a/examples/getstarted/api/rocketship/controllers/Rocketship.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -/** - * Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/controllers.html#core-controllers) - * to customize this controller - */ - -module.exports = {}; diff --git a/examples/getstarted/api/rocketship/models/Rocketship.js b/examples/getstarted/api/rocketship/models/Rocketship.js deleted file mode 100644 index c93ca0c80c..0000000000 --- a/examples/getstarted/api/rocketship/models/Rocketship.js +++ /dev/null @@ -1,55 +0,0 @@ -'use strict'; - -/** - * Lifecycle callbacks for the `Rocketship` model. - */ - -module.exports = { - // Before saving a value. - // Fired before an `insert` or `update` query. - // beforeSave: async (model, attrs, options) => {}, - - // After saving a value. - // Fired after an `insert` or `update` query. - // afterSave: async (model, response, options) => {}, - - // Before fetching a value. - // Fired before a `fetch` operation. - // beforeFetch: async (model, columns, options) => {}, - - // After fetching a value. - // Fired after a `fetch` operation. - // afterFetch: async (model, response, options) => {}, - - // Before fetching all values. - // Fired before a `fetchAll` operation. - // beforeFetchAll: async (model, columns, options) => {}, - - // After fetching all values. - // Fired after a `fetchAll` operation. - // afterFetchAll: async (model, response, options) => {}, - - // Before creating a value. - // Fired before an `insert` query. - // beforeCreate: async (model, attrs, options) => {}, - - // After creating a value. - // Fired after an `insert` query. - // afterCreate: async (model, attrs, options) => {}, - - // Before updating a value. - // Fired before an `update` query. - // beforeUpdate: async (model, attrs, options) => {}, - - // After updating a value. - // Fired after an `update` query. - // afterUpdate: async (model, attrs, options) => {}, - - // Before destroying a value. - // Fired before a `delete` query. - // beforeDestroy: async (model, attrs, options) => {}, - - // After destroying a value. - // Fired after a `delete` query. - // afterDestroy: async (model, attrs, options) => {} -}; diff --git a/examples/getstarted/api/rocketship/models/Rocketship.settings.json b/examples/getstarted/api/rocketship/models/Rocketship.settings.json deleted file mode 100644 index dc4eafd832..0000000000 --- a/examples/getstarted/api/rocketship/models/Rocketship.settings.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "connection": "default", - "collectionName": "rocketships", - "info": { - "name": "rocketship", - "description": "" - }, - "options": { - "increments": true, - "timestamps": [ - "created_at", - "updated_at" - ], - "comment": "" - }, - "attributes": { - "name": { - "type": "string" - }, - "pic": { - "model": "file", - "via": "related", - "plugin": "upload" - }, - "pictures": { - "collection": "file", - "via": "related", - "plugin": "upload" - }, - "rocketshipmaker": { - "model": "rocketshipmaker", - "via": "rocketships" - }, - "date": { - "type": "date" - } - } -} \ No newline at end of file diff --git a/examples/getstarted/api/rocketship/services/Rocketship.js b/examples/getstarted/api/rocketship/services/Rocketship.js deleted file mode 100644 index 8564ba30ea..0000000000 --- a/examples/getstarted/api/rocketship/services/Rocketship.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -/** - * Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/services.html#core-services) - * to customize this service - */ - -module.exports = {}; diff --git a/examples/getstarted/api/rocketshipmaker/config/routes.json b/examples/getstarted/api/rocketshipmaker/config/routes.json deleted file mode 100644 index 0aebf33955..0000000000 --- a/examples/getstarted/api/rocketshipmaker/config/routes.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "routes": [ - { - "method": "GET", - "path": "/rocketshipmakers", - "handler": "Rocketshipmaker.find", - "config": { - "policies": [] - } - }, - { - "method": "GET", - "path": "/rocketshipmakers/count", - "handler": "Rocketshipmaker.count", - "config": { - "policies": [] - } - }, - { - "method": "GET", - "path": "/rocketshipmakers/:id", - "handler": "Rocketshipmaker.findOne", - "config": { - "policies": [] - } - }, - { - "method": "POST", - "path": "/rocketshipmakers", - "handler": "Rocketshipmaker.create", - "config": { - "policies": [] - } - }, - { - "method": "PUT", - "path": "/rocketshipmakers/:id", - "handler": "Rocketshipmaker.update", - "config": { - "policies": [] - } - }, - { - "method": "DELETE", - "path": "/rocketshipmakers/:id", - "handler": "Rocketshipmaker.delete", - "config": { - "policies": [] - } - } - ] -} diff --git a/examples/getstarted/api/rocketshipmaker/controllers/Rocketshipmaker.js b/examples/getstarted/api/rocketshipmaker/controllers/Rocketshipmaker.js deleted file mode 100644 index 73c6f64c3f..0000000000 --- a/examples/getstarted/api/rocketshipmaker/controllers/Rocketshipmaker.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -/** - * Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/controllers.html#core-controllers) - * to customize this controller - */ - -module.exports = {}; diff --git a/examples/getstarted/api/rocketshipmaker/models/Rocketshipmaker.js b/examples/getstarted/api/rocketshipmaker/models/Rocketshipmaker.js deleted file mode 100644 index 87cb9e7db4..0000000000 --- a/examples/getstarted/api/rocketshipmaker/models/Rocketshipmaker.js +++ /dev/null @@ -1,55 +0,0 @@ -'use strict'; - -/** - * Lifecycle callbacks for the `Rocketshipmaker` model. - */ - -module.exports = { - // Before saving a value. - // Fired before an `insert` or `update` query. - // beforeSave: async (model, attrs, options) => {}, - - // After saving a value. - // Fired after an `insert` or `update` query. - // afterSave: async (model, response, options) => {}, - - // Before fetching a value. - // Fired before a `fetch` operation. - // beforeFetch: async (model, columns, options) => {}, - - // After fetching a value. - // Fired after a `fetch` operation. - // afterFetch: async (model, response, options) => {}, - - // Before fetching all values. - // Fired before a `fetchAll` operation. - // beforeFetchAll: async (model, columns, options) => {}, - - // After fetching all values. - // Fired after a `fetchAll` operation. - // afterFetchAll: async (model, response, options) => {}, - - // Before creating a value. - // Fired before an `insert` query. - // beforeCreate: async (model, attrs, options) => {}, - - // After creating a value. - // Fired after an `insert` query. - // afterCreate: async (model, attrs, options) => {}, - - // Before updating a value. - // Fired before an `update` query. - // beforeUpdate: async (model, attrs, options) => {}, - - // After updating a value. - // Fired after an `update` query. - // afterUpdate: async (model, attrs, options) => {}, - - // Before destroying a value. - // Fired before a `delete` query. - // beforeDestroy: async (model, attrs, options) => {}, - - // After destroying a value. - // Fired after a `delete` query. - // afterDestroy: async (model, attrs, options) => {} -}; diff --git a/examples/getstarted/api/rocketshipmaker/models/Rocketshipmaker.settings.json b/examples/getstarted/api/rocketshipmaker/models/Rocketshipmaker.settings.json deleted file mode 100644 index 89858fee2e..0000000000 --- a/examples/getstarted/api/rocketshipmaker/models/Rocketshipmaker.settings.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "connection": "default", - "collectionName": "rocketshipmakers", - "info": { - "name": "rocketshipmaker", - "description": "" - }, - "options": { - "increments": true, - "timestamps": true, - "comment": "" - }, - "attributes": { - "name": { - "type": "string" - }, - "rocketships": { - "collection": "rocketship", - "via": "rocketshipmaker" - } - } -} \ No newline at end of file diff --git a/examples/getstarted/api/rocketshipmaker/services/Rocketshipmaker.js b/examples/getstarted/api/rocketshipmaker/services/Rocketshipmaker.js deleted file mode 100644 index 8564ba30ea..0000000000 --- a/examples/getstarted/api/rocketshipmaker/services/Rocketshipmaker.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -/** - * Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/services.html#core-services) - * to customize this service - */ - -module.exports = {}; diff --git a/examples/getstarted/exports/graphql/schema.graphql b/examples/getstarted/exports/graphql/schema.graphql index 2c54c0e92b..773b4a166f 100644 --- a/examples/getstarted/exports/graphql/schema.graphql +++ b/examples/getstarted/exports/graphql/schema.graphql @@ -55,22 +55,6 @@ type createRecipePayload { recipe: Recipe } -input createRocketshipInput { - data: RocketshipInput -} - -input createRocketshipmakerInput { - data: RocketshipmakerInput -} - -type createRocketshipmakerPayload { - rocketshipmaker: Rocketshipmaker -} - -type createRocketshipPayload { - rocketship: Rocketship -} - input createRoleInput { data: RoleInput } @@ -116,22 +100,6 @@ type deleteRecipePayload { recipe: Recipe } -input deleteRocketshipInput { - where: InputID -} - -input deleteRocketshipmakerInput { - where: InputID -} - -type deleteRocketshipmakerPayload { - rocketshipmaker: Rocketshipmaker -} - -type deleteRocketshipPayload { - rocketship: Rocketship -} - input deleteRoleInput { where: InputID } @@ -208,19 +176,6 @@ input editRecipeInput { title: String } -input editRocketshipInput { - name: String - pic: ID - pictures: [ID] - rocketshipmaker: ID - date: DateTime -} - -input editRocketshipmakerInput { - name: String - rocketships: [ID] -} - input editRoleInput { name: String description: String @@ -312,7 +267,7 @@ scalar JSON """The `Long` scalar type represents 52-bit integers""" scalar Long -union Morph = UsersPermissionsMe | UsersPermissionsMeRole | Article | createArticlePayload | updateArticlePayload | deleteArticlePayload | Recipe | createRecipePayload | updateRecipePayload | deleteRecipePayload | Rocketship | createRocketshipPayload | updateRocketshipPayload | deleteRocketshipPayload | Rocketshipmaker | createRocketshipmakerPayload | updateRocketshipmakerPayload | deleteRocketshipmakerPayload | Tag | createTagPayload | updateTagPayload | deleteTagPayload | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | createRolePayload | updateRolePayload | deleteRolePayload | UsersPermissionsUser | createUserPayload | updateUserPayload | deleteUserPayload | MypluginTest +union Morph = UsersPermissionsMe | UsersPermissionsMeRole | Article | createArticlePayload | updateArticlePayload | deleteArticlePayload | Recipe | createRecipePayload | updateRecipePayload | deleteRecipePayload | Tag | createTagPayload | updateTagPayload | deleteTagPayload | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | createRolePayload | updateRolePayload | deleteRolePayload | UsersPermissionsUser | createUserPayload | updateUserPayload | deleteUserPayload | MypluginTest type Mutation { createArticle(input: createArticleInput): createArticlePayload @@ -321,12 +276,6 @@ type Mutation { createRecipe(input: createRecipeInput): createRecipePayload updateRecipe(input: updateRecipeInput): updateRecipePayload deleteRecipe(input: deleteRecipeInput): deleteRecipePayload - createRocketship(input: createRocketshipInput): createRocketshipPayload - updateRocketship(input: updateRocketshipInput): updateRocketshipPayload - deleteRocketship(input: deleteRocketshipInput): deleteRocketshipPayload - createRocketshipmaker(input: createRocketshipmakerInput): createRocketshipmakerPayload - updateRocketshipmaker(input: updateRocketshipmakerInput): updateRocketshipmakerPayload - deleteRocketshipmaker(input: deleteRocketshipmakerInput): deleteRocketshipmakerPayload createTag(input: createTagInput): createTagPayload updateTag(input: updateTagInput): updateTagPayload deleteTag(input: deleteTagInput): deleteTagPayload @@ -361,10 +310,6 @@ type Query { articles(sort: String, limit: Int, start: Int, where: JSON): [Article] recipe(id: ID!): Recipe recipes(sort: String, limit: Int, start: Int, where: JSON): [Recipe] - rocketship(id: ID!): Rocketship - rocketships(sort: String, limit: Int, start: Int, where: JSON): [Rocketship] - rocketshipmaker(id: ID!): Rocketshipmaker - rocketshipmakers(sort: String, limit: Int, start: Int, where: JSON): [Rocketshipmaker] tag(id: ID!): Tag tags(sort: String, limit: Int, start: Int, where: JSON): [Tag] files(sort: String, limit: Int, start: Int, where: JSON): [UploadFile] @@ -393,38 +338,6 @@ input RecipeInput { title: String } -type Rocketship { - name: String - pic: UploadFile - rocketshipmaker: Rocketshipmaker - date: DateTime - pictures(sort: String, limit: Int, start: Int, where: JSON): [UploadFile] - id: ID! - created_at: DateTime! - updated_at: DateTime! -} - -input RocketshipInput { - name: String - pic: ID - pictures: [ID] - rocketshipmaker: ID - date: DateTime -} - -type Rocketshipmaker { - name: String - rocketships(sort: String, limit: Int, start: Int, where: JSON): [Rocketship] - id: ID! - created_at: DateTime! - updated_at: DateTime! -} - -input RocketshipmakerInput { - name: String - rocketships: [ID] -} - input RoleInput { name: String! description: String @@ -466,24 +379,6 @@ type updateRecipePayload { recipe: Recipe } -input updateRocketshipInput { - where: InputID - data: editRocketshipInput -} - -input updateRocketshipmakerInput { - where: InputID - data: editRocketshipmakerInput -} - -type updateRocketshipmakerPayload { - rocketshipmaker: Rocketshipmaker -} - -type updateRocketshipPayload { - rocketship: Rocketship -} - input updateRoleInput { where: InputID data: editRoleInput