{"__v":18,"_id":"54dcfa131dd18d2100b86059","category":{"__v":7,"_id":"54fdad6e660db63700c23b82","pages":["55fbef82af72eb0d0007df93","55fbf623e013770d008fcba8","5617bd3a26e3db230054fba4","5617c4a6f8c9632100ac74f5","561ed6fd0a04340d00d8a0b0","562156adf4e0352100cbf268","562a5c846049f20d0032520b"],"project":"54d0fd1d095c470d00d1646d","version":"54d0fd1e095c470d00d16470","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-03-09T14:25:50.133Z","from_sync":false,"order":2,"slug":"api-reference","title":"API Reference"},"project":"54d0fd1d095c470d00d1646d","user":"54db5301eb78f13900cf108b","version":{"__v":20,"_id":"54d0fd1e095c470d00d16470","project":"54d0fd1d095c470d00d1646d","createdAt":"2015-02-03T16:53:50.090Z","releaseDate":"2015-02-03T16:53:50.090Z","categories":["54d0fd1e095c470d00d16471","54d8b5e68934140d00496544","54db6361c6a4d40d0034b8f7","54db638208ea010d00ab1fdd","54db639008ea010d00ab1fde","54db6547c6a4d40d0034b8fd","54db83482092743700ea6ee1","54db84afc6a4d40d0034b93c","54db8805c6a4d40d0034b93f","54db8de9c6a4d40d0034b961","54db931ac6a4d40d0034b96d","54e49219e4365521006fd9ee","54e74fcc652d7c1900cbe737","54e74ffd3c1e111700d05762","54e77e0a523b1b2f00e6f313","54e784affdabe62500fcddcf","54e784fa523b1b2f00e6f319","54e785de8ae8911900cd42c5","54fdad6e660db63700c23b82","54fdff31f7b1202100a25e06"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-02-12T19:08:03.300Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"A collection in the **goGeo** platform is equivalent to a table in relational databases. Each collection is associated to a database and is a set of documents. Each collection may be public or private. In private ones, only the user who owns the collection has access to them. On the other hand, public collections, also named shared, may be accessed by any users.\nEach collection has the attributes defined in Table 1. \n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Attribute\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Properties\",\n    \"h-3\": \"Description\",\n    \"0-0\": \"database_id\",\n    \"1-0\": \"collection_name\",\n    \"2-0\": \"description\",\n    \"3-0\": \"id\",\n    \"4-0\": \"origin\",\n    \"5-0\": \"username\",\n    \"6-0\": \"public\",\n    \"0-3\": \"The identifier of the database containing the collection. To define the database associated to collection, you can use the database identifier or name\",\n    \"1-3\": \"The collection name converted to lowercase. The collection name must start with a letter or number. It may also contain an underline, but not as the first character. Any other special characters are NOT ALLOWED. Just underline is acepted as word separator.\\nMinimum length: 3 characters.\\nSome valid names: collection_places, 4example, my_new_collection\",\n    \"2-3\": \"Collection description\",\n    \"3-3\": \"Collection identifier\",\n    \"4-3\": \"Public collection identifier associated with this collection\",\n    \"5-3\": \"Name of the user who created the collection\",\n    \"6-3\": \"Defines if the collection will be public\",\n    \"0-2\": \"required\\nread-only\",\n    \"1-2\": \"required\\nread-only\",\n    \"2-2\": \"optional\",\n    \"3-2\": \"read-only\",\n    \"4-2\": \"read-only\",\n    \"5-2\": \"read-only\",\n    \"6-2\": \"read-only\",\n    \"0-1\": \"String\",\n    \"1-1\": \"String\",\n    \"2-1\": \"String\",\n    \"3-1\": \"String\",\n    \"4-1\": \"String\",\n    \"5-1\": \"String\",\n    \"6-1\": \"String\"\n  },\n  \"cols\": 4,\n  \"rows\": 7\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<div class='footer_table'>\\nTable 1 - Attributes of collection.\\n</div>\\n\\n<style>\\n  .footer_table {\\n  \\ttext-align: center;\\n    max-width: 400px;\\n    margin: 10px auto 0px;\\n    color: #888;\\n    font-size: 0.9em;\\n    margin-top: -21px;\\n  }\\n</style>\"\n}\n[/block]\n---\n[block:html]\n{\n  \"html\": \"<div class='div-middle'> \\n  <a href='#'>\\n    Top page &spades; </div>\\n  </a>\\n</div>\\n\\n\\n<div class='div-forward'> \\n  <a href='/v1.0/docs/create-a-collection'>\\n    Next &raquo; </div>\\n  </a>\\n</div>\\n\\n<style>\\n  .div-middle {\\n  \\ttext-align: center;\\n\\t\\tmargin-top: -15px;\\n  }\\n  \\n  .div-forward {\\n  \\tfloat: right;\\n    padding-right: 15px;\\n\\t\\tmargin-top: -20px;\\n  }\\n</style>\"\n}\n[/block]","excerpt":"","slug":"collections","type":"basic","title":"Collections"}
A collection in the **goGeo** platform is equivalent to a table in relational databases. Each collection is associated to a database and is a set of documents. Each collection may be public or private. In private ones, only the user who owns the collection has access to them. On the other hand, public collections, also named shared, may be accessed by any users. Each collection has the attributes defined in Table 1. [block:parameters] { "data": { "h-0": "Attribute", "h-1": "Type", "h-2": "Properties", "h-3": "Description", "0-0": "database_id", "1-0": "collection_name", "2-0": "description", "3-0": "id", "4-0": "origin", "5-0": "username", "6-0": "public", "0-3": "The identifier of the database containing the collection. To define the database associated to collection, you can use the database identifier or name", "1-3": "The collection name converted to lowercase. The collection name must start with a letter or number. It may also contain an underline, but not as the first character. Any other special characters are NOT ALLOWED. Just underline is acepted as word separator.\nMinimum length: 3 characters.\nSome valid names: collection_places, 4example, my_new_collection", "2-3": "Collection description", "3-3": "Collection identifier", "4-3": "Public collection identifier associated with this collection", "5-3": "Name of the user who created the collection", "6-3": "Defines if the collection will be public", "0-2": "required\nread-only", "1-2": "required\nread-only", "2-2": "optional", "3-2": "read-only", "4-2": "read-only", "5-2": "read-only", "6-2": "read-only", "0-1": "String", "1-1": "String", "2-1": "String", "3-1": "String", "4-1": "String", "5-1": "String", "6-1": "String" }, "cols": 4, "rows": 7 } [/block] [block:html] { "html": "<div class='footer_table'>\nTable 1 - Attributes of collection.\n</div>\n\n<style>\n .footer_table {\n \ttext-align: center;\n max-width: 400px;\n margin: 10px auto 0px;\n color: #888;\n font-size: 0.9em;\n margin-top: -21px;\n }\n</style>" } [/block] --- [block:html] { "html": "<div class='div-middle'> \n <a href='#'>\n Top page &spades; </div>\n </a>\n</div>\n\n\n<div class='div-forward'> \n <a href='/v1.0/docs/create-a-collection'>\n Next &raquo; </div>\n </a>\n</div>\n\n<style>\n .div-middle {\n \ttext-align: center;\n\t\tmargin-top: -15px;\n }\n \n .div-forward {\n \tfloat: right;\n padding-right: 15px;\n\t\tmargin-top: -20px;\n }\n</style>" } [/block]