{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"0c5191c1-9c0c-48e1-b62c-dda6814906a9","name":"Ecodoc.app","description":"<h2>Welcome to Ecodoc Graphql API documentation</h2>\n<p>Version: 2023-03-06</p>\n<h3>Platform security</h3>\n<ul>\n<li>Network isolation and access</li>\n<li>Encryption in flight and at rest</li>\n<li>Granular database auditing</li>\n</ul>\n\nDownload <a href=\"https://webassets.mongodb.com/_com_assets/cms/MongoDB_Atlas_Security_Controls-v7k3rbhi3p.pdf\">whitepaper with plataform security information</a>.\n\n\n<h3>Platform compliance</h3>\n<ul>\n<li>Download <a href=\"https://www.mongodb.com/cloud/trust/compliance/hipaa\">HIPAA</a> information</li>\n<li>Download <a href=\"https://www.mongodb.com/cloud/trust/compliance/gdpr\">GDPR</a> information</li>\n<li>Download <a href=\"https://www.mongodb.com/cloud/trust/compliance/soc\">SOC</a> information</li>\n<li>Download <a href=\"https://www.mongodb.com/cloud/trust/compliance/iso\">ISO/IEC 27001:2013</a> information</li>\n<li>Download <a href=\"https://www.mongodb.com/cloud/trust/compliance/pci-dss\">PCI DSS</a> information</li>\n</ul>\n\n\n<h3>Users & Authentication</h3>\nAuthentication of the Ecodoc has two tokens. The refresh token and the access token.\n\nThe refresh token is only used to capture new access token. This token has no validity and should be stored with maximum security.\n\nAccess token is used in all request headers. This token is valid for 15 minutes and is similar to a users session.\n\n<h3>Date format</h3>\nAll dates in the API use UTC and are strings in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations\">ISO 8601 \"combined date and time representation\"</a> format:\n\n<strong>2022-06-01T15:50:38Z</strong>\n\n<h3>Limitation</h3>\nThis API can process a maximum of 10 resolvers for a given query or mutation. If an operation specifies more than ten resolvers, the entire operation will fail with the error message \"max number of queries reached\".\n\n\n<h3>The query filters have these operators fields:</h3>\n\n<b>gt</b>: Finds documents where the field is greater than the specified value.\n\n<b>gte</b>: Finds documents where the field is greater than or equal to the specified value.\n\n<b>lt</b>: Finds documents where the field is less than the specified value.\n\n<b>lte</b>:\nFinds documents where the field is less than or equal to the specified value.\n\n<b>ne</b>: Finds documents where the field is not equal to the specified value.\n\n<b>in</b>: Finds documents where the field is equal to any value in the specified array. If the field is an Array, this finds all documents where any value in the field array is also included in the specified array.\n\nExample:\n<code>query: {first_name_in: [\"Tom\", \"Ton\"]}</code>\n\n<b>nin</b>: Finds documents where the field is not equal to any value in the specified array. If the field is an Array, this finds all documents where any value in the field array is also in the specified array.\n\n<b>exists</b>: Finds documents where the field is not null.\n\n\n<h3>And these logical operators:</h3>\n\n<b>AND</b>: Finds documents that match all of the provided QueryInput objects.\n\nExample:\n<code>\nappointments(query: { AND: [{ duration: 40 }, { status: SCHEDULED }] })\n</code>\n\n<b>OR</b>: Finds documents that match any of the provided QueryInput objects.\n\nExample:\n<code>\nappointments(query: { OR: [{ duration: 40 }, { status: SCHEDULED }] })\n</code>\n\n<h3>Limit and sort</h3>\n\n<b>limit</b>: Optional. The maximum number of documents to include in the query result set. If the query matches more than the set limit then it only returns a subset of matched documents.\n\nIf you do not specify a limit argument then the query operation returns all matching documents.\n\n<b>sortBy</b>: Optional. A value that defines a sort order for documents in the query result set. You can sort in ascending and descending order by any root-level field that does not have a type of object or array.\n\nThe sortBy value is a fully-capitalized identifier that combines the field name and the sort direction. For example:\n\nto sort by title from A to Z you would use TITLE_ASC\nto sort by rating from highest to lowest you would use RATING_DESC\nIf you do not specify a sortBy argument then the query operation does not guarantee the order of documents in the result set.\n\n<h3>Mutation</h3>\n\nMutation queries modify document in the data store and returns a value. It can be used to insert, update or delete document. Mutations are defined as a part of the schema.\n\nOne: <code>insertOne<b>Collection</b></code>, <code>updateOne<b>Collection</b></code>\nand <code>deleteOne<b>Collection</b></code>.\n\nMore than 1: <code>insertMany<b>Collections</b> (plural)</code>, <code>updateMany<b>Collections</b> (plural)</code>\nand <code>deleteMany<b>Collections</b> (plural)</code>.\n\n<h4>Insert a sample document:</h4><pre><code>\nmutation {\n    insertOneAppointment(\n        data: {\n            date_time: \"2021-04-05T07:24:00Z\",\n            duration: 30,\n            customer: {link:\"607ec55e4a5bfc3c507063f7\"},\n            status: SCHEDULED,\n            observation: \"Medical consultation\",\n            _partition: \"607db6054a5bfc3c50a01795\"\n        }\n    ) {\n        _id\n        date_time\n        created_at\n    }\n}\n</code></pre>\n\n<h4>Example more than 1 document:</h4><pre><code>\nmutation {\n    insertManyAppointments(\n        data: [\n            {\n                date_time: \"2021-04-05T07:24:00Z\",\n                duration: 30,\n                customer: {link:\"607ec55e4a5bfc3c507063f7\"},\n                status: SCHEDULED,\n                observation: \"Medical consultation\",\n                _partition: \"607db6054a5bfc3c50a01795\"\n            },\n            {\n                date_time: \"2021-04-06T07:24:00Z\",\n                duration: 45,\n                customer: {link:\"607ec55e4a5bfc3c507063f7\"},\n                status: SCHEDULED,\n                observation: \"Medical consultation 2\",\n                _partition: \"607db6054a5bfc3c50a01795\"\n            },\n        ]\n    ) {\n        insertedIds\n    }\n}\n</code></pre>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"5380649","team":1789727,"collectionId":"0c5191c1-9c0c-48e1-b62c-dda6814906a9","publishedId":"TzJuAdad","public":true,"publicUrl":"https://documenter-api.postman.tech/view/5380649/TzJuAdad","privateUrl":"https://go.postman.co/documentation/5380649-0c5191c1-9c0c-48e1-b62c-dda6814906a9","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"413DF7"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2021-04-20T16:29:22.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/caca20fd71b64146120fe447a7cc98fef2b4a9f23880bcb2d77973fb690c03d7","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/TzJuAdad"}