{"_id":"588f722bbcace50f0052b9fa","category":{"_id":"588f722bbcace50f0052b9e3","version":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-09T21:22:52.427Z","from_sync":false,"order":1,"slug":"user-guide","title":"Reference"},"version":{"_id":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","__v":1,"createdAt":"2017-01-30T17:04:43.410Z","releaseDate":"2017-01-30T17:04:43.410Z","categories":["588f722bbcace50f0052b9e2","588f722bbcace50f0052b9e3","588f722bbcace50f0052b9e4","588f722bbcace50f0052b9e5","588f722bbcace50f0052b9e6","588f722bbcace50f0052b9e7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"5.3.0","version":"5.3.0"},"__v":0,"parentDoc":null,"project":"565f5fa26bafd40d0030a064","user":"565f5f29de5dc50d00acfe9f","updates":["57e5524100c8680e00fae7e0","57ea89f7802e4a17009181a8"],"next":{"pages":[],"description":""},"createdAt":"2016-06-08T18:23:44.094Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":13,"body":"Collections are logical groupings of objects that you store in the nanoscale.io local 'Store' remote endpoint. To access collections in your Proxy Endpoint logic, please view the Remote Endpoint and JS Object Reference sections pertaining to the local 'Store'. This section is all about using it from within the Admin UI.\n\nYou can reach your collections via the 'Manage' button on the main dashboard page.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/emAW2fyrT9tn9HIP9rw8_Screen%20Shot%202016-06-08%20at%202.24.41%20PM.png\",\n        \"Screen Shot 2016-06-08 at 2.24.41 PM.png\",\n        \"1009\",\n        \"440\",\n        \"#31404f\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nWhen you go to your collections, you will see all of them listed on the left. The first collection will be selected and objects in that collection will be displayed to the right.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/sjxpmxpaQCI0D8WT0vVP_collections.png\",\n        \"collections.png\",\n        \"1451\",\n        \"439\",\n        \"\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nA new collection can be created quickly. Simply click' the '+ New' link on the left and then enter a name for your collection.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/eZkOQ7NSk6p4QuB79dEQ_new-collection.png\",\n        \"new-collection.png\",\n        \"1448\",\n        \"533\",\n        \"#5c842d\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nA new object can be added to a collection just by clicking new and adding the object as JSON. For the purposes of collections, all objects as just JSON. These collections and objects are all stored in a Postgres database (or a BoltDB instance when you run the binary locally and not in server mode).\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/02vauo3FQK2f40TkNH9i_new-object.png\",\n        \"new-object.png\",\n        \"1449\",\n        \"775\",\n        \"#cc4963\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nYou can edit an object in a collection by clicking the `id` of the object.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/7jqiUXZSTrur2aT2vhxZ_edit-object.png\",\n        \"edit-object.png\",\n        \"1446\",\n        \"532\",\n        \"#b96d56\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nTo delete an object you hover over the object instance row and then click the '-' button on the right.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/mHaghGdATVOmrwkjTp9d_delete-object.png\",\n        \"delete-object.png\",\n        \"1161\",\n        \"302\",\n        \"#ba5774\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"collections","type":"basic","title":"Collections"}
Collections are logical groupings of objects that you store in the nanoscale.io local 'Store' remote endpoint. To access collections in your Proxy Endpoint logic, please view the Remote Endpoint and JS Object Reference sections pertaining to the local 'Store'. This section is all about using it from within the Admin UI. You can reach your collections via the 'Manage' button on the main dashboard page. [block:image] { "images": [ { "image": [ "https://files.readme.io/emAW2fyrT9tn9HIP9rw8_Screen%20Shot%202016-06-08%20at%202.24.41%20PM.png", "Screen Shot 2016-06-08 at 2.24.41 PM.png", "1009", "440", "#31404f", "" ] } ] } [/block] When you go to your collections, you will see all of them listed on the left. The first collection will be selected and objects in that collection will be displayed to the right. [block:image] { "images": [ { "image": [ "https://files.readme.io/sjxpmxpaQCI0D8WT0vVP_collections.png", "collections.png", "1451", "439", "", "" ] } ] } [/block] A new collection can be created quickly. Simply click' the '+ New' link on the left and then enter a name for your collection. [block:image] { "images": [ { "image": [ "https://files.readme.io/eZkOQ7NSk6p4QuB79dEQ_new-collection.png", "new-collection.png", "1448", "533", "#5c842d", "" ] } ] } [/block] A new object can be added to a collection just by clicking new and adding the object as JSON. For the purposes of collections, all objects as just JSON. These collections and objects are all stored in a Postgres database (or a BoltDB instance when you run the binary locally and not in server mode). [block:image] { "images": [ { "image": [ "https://files.readme.io/02vauo3FQK2f40TkNH9i_new-object.png", "new-object.png", "1449", "775", "#cc4963", "" ] } ] } [/block] You can edit an object in a collection by clicking the `id` of the object. [block:image] { "images": [ { "image": [ "https://files.readme.io/7jqiUXZSTrur2aT2vhxZ_edit-object.png", "edit-object.png", "1446", "532", "#b96d56", "" ] } ] } [/block] To delete an object you hover over the object instance row and then click the '-' button on the right. [block:image] { "images": [ { "image": [ "https://files.readme.io/mHaghGdATVOmrwkjTp9d_delete-object.png", "delete-object.png", "1161", "302", "#ba5774", "" ] } ] } [/block]