{"collection":{"info":{"_postman_id":"ae9724b5-10ac-428a-b0d2-e7d8127659c0","name":"Elasticgraph","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:33:33.000Z","lastUpdatedBy":"17317391","uid":"17317391-ae9724b5-10ac-428a-b0d2-e7d8127659c0"},"item":[{"name":"Search","id":"3ffb8fad-5c80-40be-bd4a-ddaa4251c9f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"_type\": \"movie\",\n    \"aggs\": {\n        \"term\": {\n            \"providers\": {\n                \"field\": \"provider._id\"\n            }\n        },\n        \"from\": 0,\n        \"size\": 200\n    }\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/search","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","search"]},"description":"<b>Definition:</b>\nSearch (get) all the data of the specific entity through single query.\n\n<b>@Required Params:</b>\n1. \"_type\" of the entity which is entity name.\n2. \"query\": query for the data needed to be fetched from the database. example: <a href =\"https://www.elastic.co/guide/en/elasticsearch/reference/6.8/query-dsl-bool-query.html\">filter, must, should</a> etc. \n\n<b>@Optional params</b>\n1. \"joins\": Like <a href=\"https://github.com/Mindgreppers/elasticgraph/blob/esv7/README.md\">SQL joins</a>, your can merge data from related entities while doing read operations. You can do this for up-to multiple depths of relationships. Like fetch events and also fetch the titles of its sessions. \n\n2. \"from\" and \"size\": Range of the data needs to be queried.\n\n<b>Example of the JSON body with all params:</b> \n\n{\"_index\":\"old-content-to-audio-channels\",\"_type\":\"old-content-to-audio-channel\",\"query\":{\"filtered\":{\"filter\":{\"bool\":{\"must\":[{\"query\":{\"match\":{\"content_id\":\"1167\"}}}],\"must_not\":[],\"should\":[]}}}},\"joins\":null,\"size\":20}"},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:06.000Z","uid":"17317391-3ffb8fad-5c80-40be-bd4a-ddaa4251c9f5"},{"name":"Update Entity","id":"3a89beb4-c268-4810-9ec5-edf59885e9a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"_type\": \"provider\",\n\t\"_id\": \"8\",\n    \"update\": {\n        \"set\" : {\n            \"logo_path\": \"/9A1JSVmSxsyaBK4SUFsYVqbAYfW.jpg\"\n        }\n    }\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/update","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","update"]},"description":"<b>Definition :</b> To update the existing entity's fields use this end API.\n\n<b>Required @Params </b>\n\n * @param _id\nid of the entity field needs to be updated\n * @param _type\nentity name\n * @param update the <a href=\"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html\">update instructions </a>as per js-object-updater module.\n\n<b>Additional @params can be used inside update: </b>\n* <a href=\"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html\">push</a>\nexample --->\npush: {\n        x: [567],\n        yString: ['ff']\n      }\n\n* <a href=\"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html\">set </a>\nexample --->\n  set: {\n        x: [567, 2],\n        yString: ['ffg']\n      }\n* <a href=\"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html\">addToSet</a>\nexample --->\n   addToSet: {\n        x: [567],\n        yString: ['ff']\n      }\n* <a href=\"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html\">unset </a>\nexample --->\n unset: \n      [\n        'x'\n      ]\n\n<b>Example Query with all params : </b>\n{\n\t_id: 'AVeawbnNW2vhiwtp9F2D',\n\t_type: 'event',\n\tlang: 'english',\n\tupdate: {\n\t\tset: {\n\t\t\tenglish: {\n\t\t\t\ttitle: 'Finding Common Ground'\n\t\t\t}\n\t\t}\n\t}\n}"},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:14.000Z","uid":"17317391-3a89beb4-c268-4810-9ec5-edf59885e9a0"},{"name":"Get Entity","id":"8d198d60-544e-4269-9cd8-8eb36dd1a1b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"_type\": \"film\",\n\t\"_id\": \"a0afdce1af582efa1cc8c15e419f4c10d50ca2b4\",\n\t\"join\":{\n\t\t\"providers\" : 1\n\t}\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/read","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","read"]},"description":"Get all the data from the entities .i.e. schema defined in the backend folder via this <a href=\"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#docs-get\">read API</a>. \n\n<b>Required @Params</b>\n1. \"_type\" which is entity name \n2. \"_id\" id of the respective relationship inside entity. ex - id of film, tv-show etc.\n\n<b> Optional @params </b>\n1. @param {Array} \"fields\" fieldsToFetch for this entity. If this does not return valid fields to be fetched, the joins param is used to fetch the fields\n\n2. @param {String} \"joins\" The <a  href=\"https://github.com/Mindgreppers/elasticgraph/blob/esv7/README.md\">joins</a> to do for this entity or an Object\n\n<b>Example Query with all params:</b>\n {\n\t\"_type\": 'event',\n\t\"_id\": 'AVeuJeQ9jGz7t7QfUg_M',\n\t\"joins\": 'read'\n}"},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:16.000Z","uid":"17317391-8d198d60-544e-4269-9cd8-8eb36dd1a1b6"},{"name":"Post Multi-List Merge","id":"b662022d-589c-47d7-bff5-7a40cb4fb376","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"queries\": [\n        {\n            \"_type\": \"film\",\n            \"query\": {\n                \"exists\": {\n                    \"field\": \"trending-now._id\"\n                }\n            },\n            \"joins\": {\n                \"popularity\": 1,\n                \"vote_average\": 1,\n                \"poster_path\": 1,\n                \"title\": 1,\n                \"videos\": 1\n            }\n        },\n         {\n            \"_type\": \"tv-show\",\n            \"query\": {\n                \"exists\": {\n                    \"field\": \"trending-now._id\"\n                }\n            },\n            \"joins\": {\n                \"popularity\": 1,\n                \"vote_average\": 1,\n                \"poster_path\": 1,\n                \"title\": 1,\n                \"videos\": 1\n            }\n        },\n        {\n            \"_type\": \"film\",\n            \"query\": {\n                \"exists\": {\n                    \"field\": \"now-playing._id\"\n                }\n            },\n            \"joins\": {\n                \"popularity\": 1,\n                \"vote_average\": 1,\n                \"poster_path\": 1,\n                \"title\": 1,\n                \"videos\": 1\n            }\n        },\n        {\n            \"_type\": \"tv-show\",\n            \"sort\": {\n                \"popularity\": \"desc\"\n            },\n            \"joins\": {\n                \"popularity\": 1,\n                \"vote_average\": 1,\n                \"poster_path\": 1,\n                \"title\": 1,\n                \"videos\": 1\n            }\n        },\n        {\n            \"_type\": \"film\",\n            \"sort\": {\n                \"popularity\": \"desc\"\n            },\n            \"joins\": {\n                \"popularity\": 1,\n                \"vote_average\": 1,\n                \"poster_path\": 1,\n                \"title\": 1,\n                \"videos\": 1\n            }\n        }\n    ],\n    \"merging\": {\n        \"algorithm\": \"algo_name\",\n        \"params\": {\n            \"ratio\": \"1:1:1:1:1\"\n        }\n    },\n    \"from\": 0,\n    \"size\": 100\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://{{host}}/api/v1/entity/multi-list-merge","protocol":"http","host":["{{host}}"],"path":["api","v1","entity","multi-list-merge"]},"description":"<b>Definition : </b>This query API will return the data of different schema fields in user-defined proportion (in - ratios specified)\n\n The queries will contain queries in this format:\n\n  {\n   queries: [\n       {paramsOfQueryA},\n       {paramsOfQueryB},\n       {paramsOfQueryC}\n   ],\n   merging: {\n       algorithm: ratio-proportion,\n      params: {\n           ratio: \"1:1:1\"\n       }\n    },\n    from: 0,\n   size: 20\n  }\n\n<b>Required @Params</b>\n\"_type\" : entity name\n\"query\" : to check the field existence then fetch.\n\"merging\" : params ratio needs to be specified to get the respective queries in proportion.\n\"from\" and \"size\" : Total no. of results in a range. \n\n<b>Optional @Params</b>\n\"joins\" : <a href=\"https://github.com/Mindgreppers/elasticgraph/blob/esv7/README.md\">joins</a> is used to fetch the only particular fields from the read.txt, search.txt or index.txt respectively.\n\nTo know more about joins and multiquery searches refer :\nhttps://github.com/Mindgreppers/elasticgraph/blob/esv7/README.md"},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:17.000Z","uid":"17317391-b662022d-589c-47d7-bff5-7a40cb4fb376"},{"name":"Post MultiQuery Search","id":"ff48eaa0-48a1-48c9-900b-02bd3dae1fd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n\"queries\":[\n        {\n            \"queryType\": \"search\", \n            \"params\": {\n                 \"_index\": \"films\",\n                  \"_type\": \"film\",\n                   \"joins\": \"search\", \n                   \"size\": 20\n                    }\n        },\n         {\n            \"queryType\": \"search\", \n            \"params\": {\n                 \"_index\": \"auth_users\",\n                  \"_type\": \"auth_user\",\n                   \"joins\": \"read\", \n                   \"size\": 20\n                    }\n        },\n         {\n            \"queryType\": \"search\", \n            \"params\": {\n                 \"_index\": \"providers\",\n                  \"_type\": \"provider\",\n                   \"joins\": \"read\", \n                   \"size\": 20\n                    }\n        }\n]\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/multiquery","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","multiquery"]},"description":"<b>Definition :</b> To execute <a href=\"https://github.com/Mindgreppers/elasticgraph/blob/esv7/README.md\">multiple queries</a> in one go for the multiple entities use this api end route.\n\nThe queries will contain queries in this format: \n [{queryType: search, params: \nsearch_params}, {queryType: search, params: search2_params}, queryType: create, params: create_params...]\n\n<b>Required @params</b>\n * @queryType (search/get/delete/link/unlink/update/create/multisearch)\n * @param {queries: []} params \n\n\n<b>Example Query with all params :</b>\n{\n\"queries\":[\n        {\n            \"queryType\": \"search\", \n            \"params\": {\n                 \"_index\": \"films\",\n                  \"_type\": \"film\",\n                   \"joins\": \"search\", \n                   \"size\": 20\n                    }\n        },\n         {\n            \"queryType\": \"search\", \n            \"params\": {\n                 \"_index\": \"auth_users\",\n                  \"_type\": \"auth_user\",\n                   \"joins\": \"read\", \n                   \"size\": 20\n                    }\n        },\n         {\n            \"queryType\": \"search\", \n            \"params\": {\n                 \"_index\": \"providers\",\n                  \"_type\": \"provider\",\n                   \"joins\": \"read\", \n                   \"size\": 20\n                    }\n        }\n]\n}\n\nTo know more about multiquery search refer :\nhttps://github.com/Mindgreppers/elasticgraph/blob/esv7/README.md"},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:21.000Z","uid":"17317391-ff48eaa0-48a1-48c9-900b-02bd3dae1fd7"},{"name":"Link entities","id":"798e6af9-2571-4959-9785-6826f66b7063","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"e1\": {\n      \"_type\": \"userpost\",\n      \"_id\": \"fca71ad1e1971b4d370d406d99e4b62cb3ec70da\"\n    },\n    \"e2\": {\n      \"_type\": \"auth_user\",\n      \"_id\": \"d60bb1137f1804f812c95b501cca4b2526fc0404\"\n    },\n    \"e1ToE2Relation\": \"likedBy\"\n  }"},"url":{"raw":"http://{{host}}/api/v1/entity/link","protocol":"http","host":["{{host}}"],"path":["api","v1","entity","link"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:23.000Z","uid":"17317391-798e6af9-2571-4959-9785-6826f66b7063"},{"name":"Get Filters","id":"02cf5400-2030-4abd-80cc-28aa2552f986","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"queries\": [\n    {\n      \"queryType\": \"search\",\n      \"params\": {\n        \"_index\": \"genres\",\n        \"_type\": \"genre\",\n        \"size\": 50 \n      }\n    },\n       {\n      \"queryType\": \"search\",\n      \"params\": {\n        \"_index\": \"providers\",\n        \"_type\": \"provider\",\n        \"size\": 50 \n      }\n    },\n    {\n      \"queryType\": \"search\",\n      \"params\": {\n        \"_index\": \"certifications\",\n        \"_type\": \"certification\",\n        \"size\": 50 \n      }\n    }\n  ]\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/multiquery","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","multiquery"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:33:33.000Z","uid":"17317391-02cf5400-2030-4abd-80cc-28aa2552f986"},{"name":"Search-AutoSuggest","id":"063fb381-6920-463c-9e1e-bd7ee56230c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"q\": \"case\",\n    \"suggest\": true,\n    \"scoring_script\": \"Math.log(2 + _score + (doc['vote_average'].size() != 0 ? doc['vote_average'].value : 0) +  (doc['popularity'].size() !=  0 ? doc['popularity'].value : 0))\",\n    \"_type\": [\"film\", \"tv-show\"],\n    \"size\": 10,\n    \"joins\": {\"title\":1, \"vote_average\":1, \"popularity\":1}\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/search","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","search"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:26.000Z","uid":"17317391-063fb381-6920-463c-9e1e-bd7ee56230c3"},{"name":"Get Linked Preferred Providers ","id":"0d46c9e3-dcf2-4765-b0bb-248e8a948cdf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"_type\": \"auth_user\",\n\t\"_id\": \"Ayush_Ghai8752\"\n}\n\n"},"url":{"raw":"https://{{host}}/api/v1/entity/read","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","read"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:29.000Z","uid":"17317391-0d46c9e3-dcf2-4765-b0bb-248e8a948cdf"},{"name":"Multi Query With Search LoadFilters","id":"154dcc23-391a-4b30-8a98-a36652fc9141","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"queries\": [\n    {\n      \"queryType\": \"search\",\n      \"params\": {\n        \"_index\": \"genres\",\n        \"_type\": \"genre\",\n        \"size\": 50 \n      }\n    },\n       {\n      \"queryType\": \"search\",\n      \"params\": {\n        \"_index\": \"providers\",\n        \"_type\": \"provider\",\n        \"size\": 50 \n      }\n    },\n    {\n      \"queryType\": \"search\",\n      \"params\": {\n        \"_index\": \"certifications\",\n        \"_type\": \"certification\",\n        \"size\": 50 \n      }\n    }\n  ]\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/multiquery","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","multiquery"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:33.000Z","uid":"17317391-154dcc23-391a-4b30-8a98-a36652fc9141"},{"name":"User-Rating Movie","id":"3ec18062-05c7-4a87-b026-19b83ad8873e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"body\":{\n\t\t\"user\": {\n\t  \"_id\": \"yadavsuneetha@gmailcom\",\n\t  \"own\": true\n\t},\n\t\"movie-rated\": {\n\t  \"_id\": \"278\",\n\t  \"own\": true\n\t},\n\t\"rating\": 3.5\n},\n    \"type\":\"user-media-rating\"\n  }"},"url":{"raw":"https://{{host}}/api/v1/entity/create","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","create"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:36.000Z","uid":"17317391-3ec18062-05c7-4a87-b026-19b83ad8873e"},{"name":"Multiquery Trending-Media with Now-Playing","id":"77f4f1cf-d8d4-4599-86a5-c980237a6b8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"queries\": [\n    {\n      \"queryType\": \"search\",\n      \"params\": {\n        \"_index\": \"trending-medias\",\n        \"_type\": \"trending-media\",\n        \"langs\": \"english\"\n      }\n    },\n     {\n      \"queryType\": \"search\",\n      \"params\": {\n        \"_index\": \"now-playings\",\n        \"_type\": \"now-playing\",\n        \"langs\": \"english\"\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://{{host}}/api/v1/entity/multiquery","protocol":"http","host":["{{host}}"],"path":["api","v1","entity","multiquery"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:41.000Z","uid":"17317391-77f4f1cf-d8d4-4599-86a5-c980237a6b8e"},{"name":"Search userposts with scoring and media ratings","id":"f2d997f3-9e73-4577-b12e-52d8107b86f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"_type\": \"userpost\",\n    \"_index\": \"userposts\",\n    \"joins\": {\n        \"text\": 1,\n        \"movies\": {\n            \"user-ratings\": {\n                \"rating\": 1,\n                \"_where\": {\n                    \"user._id\": \"*userpost.user._id\",\n                    \"movie-rated._id\": {\n                        \"_in\": \"*userpost.movies._id\"\n                    }\n                }\n                \n            }\n        },\n        \"tv-shows\": {\n            \"user-ratings\": {\n                \"rating\": 1,\n                \"_where\": {\n                    \"user._id\": \"*userpost.user._id\",\n                    \"tv-show-rated._id\": {\n                        \"_in\": \"*userpost.tv-shows._id\"\n                    }\n                }\n            }\n        },\n        \"user\": {\n            \"_id\": 1,\n            \"name\": 1\n        }\n    },\n    \"scoring_script\": \"Math.log(2 + _score + doc['likedBy._id'].length +  doc['comments._id'].length)\",\n    \"from\": 0,\n    \"size\": 10\n}"},"url":{"raw":"{{host}}/api/v1/entity/search","host":["{{host}}"],"path":["api","v1","entity","search"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:43.000Z","uid":"17317391-f2d997f3-9e73-4577-b12e-52d8107b86f6"},{"name":"Multquery","id":"19fe6f81-1140-44f2-b9f1-a6f7c1749a46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"queries\": [\n        {\n            \"queryType\": \"get\",\n            \"params\": {\n                \"_type\": \"movie\",\n                \"_id\": \"618162\",\n                \"movie\": {\n                    \"title\": 1,\n                    \"vote_average\": 1,\n                    \"poster_path\": 1,\n                    \"runtime\": 1,\n                    \"watch-list\": {\n                        \"_id\": 1,\n                        \"_where\": {\n                            \"watched-movies._id:\": \"*movie._id\",\n                            \"_id\": \"Kushal2552\"\n                        }\n                    },\n                    \"genres\": {\n                        \"name\": 1\n                    }\n                },\n                \"joins\": {\n                    \"poster_path\": 1,\n                    \"overview\": 1,\n                    \"cast\": {\n                        \"name\": 1\n                    },\n                    \"vote_average\": 1,\n                    \"similar-movies\": {\n                        \"poster_path\": 1,\n                        \"vote_average\": 1\n                    },\n                    \"runtime\": 1,\n                    \"original_title\": 1,\n                    \"genres\": {\n                        \"name\": 1\n                    },\n                    \"title\": 1\n                }\n            }\n        },\n        {\n            \"queryType\": \"search\",\n            \"params\": {\n                \"_type\": \"user-media-rating\",\n                \"query\": {\n                    \"bool\": {\n                        \"filter\": [\n                            {\n                                \"match\": {\n                                    \"movie._id\": \"618162\"\n                                }\n                            }\n                        ]\n                    }\n                },\n                \"joins\": {\n                    \"user\": {\n                        \"_id\": 1\n                    },\n                    \"rating\": 1,\n                    \"_createdAt\": 1,\n                    \"_updatedAt\": 1\n                }\n            }\n        },\n        {\n            \"queryType\": \"search\",\n            \"params\": {\n                \"_type\": \"userpost\",\n                \"query\": {\n                    \"bool\": {\n                        \"filter\": [\n                            {\n                                \"match\": {\n                                    \"movies._id\": \"618162\"\n                                }\n                            }\n                        ]\n                    }\n                },\n                \"joins\": {\n                    \"text\": 1,\n                    \"_createdAt\": 1,\n                    \"user\": {\n                        \"email\": 1,\n                        \"name\": 1,\n                        \"generatedUsername\": 1\n                    },\n                    \"likedBy\": {\n                        \"email\": 1,\n                        \"name\": 1,\n                        \"_id\": 1,\n                        \"generatedUsername\": 1\n                    },\n                    \"comments\": {\n                        \"text\": 1,\n                        \"commentBy\": {\n                            \"name\": 1,\n                            \"email\": 1\n                        }\n                    }\n                }\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://{{host}}/api/v1/entity/multiquery","protocol":"http","host":["{{host}}"],"path":["api","v1","entity","multiquery"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:46.000Z","uid":"17317391-19fe6f81-1140-44f2-b9f1-a6f7c1749a46"},{"name":"Join API","id":"cb1dadbf-5732-4333-a9fe-6cc08778fbda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"_type\": \"season\",\n\t\"_id\": \"77063\",\n    \"joins\": {\n        \"episodes\":1\n    }\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/read","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","read"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:49.000Z","uid":"17317391-cb1dadbf-5732-4333-a9fe-6cc08778fbda"},{"name":"Search with Filters","id":"a00cbf9d-9054-46b6-b56f-d40d25596b83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"queries\": [\n    {\n      \"queryType\": \"search\",\n      \"params\": {\n        \"_index\": \"films\",\n        \"_type\": \"film\",\n        \"size\": 10,\n        \"sort\": [\n          {\n            \"popularity\": \"desc\"\n          }\n        ],\n        \"filters\": [\n          {\n            \"range\": {\n              \"release_date\": {\n                \"gte\": \"2018-01-12\",\n                \"lte\": \"2019-01-12\"\n              }\n            }\n          },\n          {\n            \"range\": {\n              \"rating\": {\n                \"gte\": 2\n              }\n            }\n          },\n          {\n            \"bool\": {\n              \"should\": [\n                {\n                  \"match_phrase\": {\n                    \"genres._id\": 28\n                  }\n                },\n                {\n                  \"match_phrase\": {\n                    \"genres._id\": 30\n                  }\n                }\n              ]\n            }\n          },\n          {\n            \"certification._id\": 3\n          },\n          {\n            \"bool\": {\n              \"must\": [\n                {\n                  \"match_phrase\": {\n                    \"watch_providers._id\": 8\n                  }\n                },\n                {\n                  \"match_phrase\": {\n                    \"watch_providers._id\": 3\n                  }\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ]\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/multiquery","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","multiquery"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:52.000Z","uid":"17317391-a00cbf9d-9054-46b6-b56f-d40d25596b83"},{"name":"Set preferred providers","id":"f66ca950-6351-46ba-a636-7e758845035b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"_type\": \"auth_user\",\n\t\"_id\": \"Ayush_Ghai8752\",\n    \"update\": {\n        \"set\" : {\n            \"preferred_providers\": [{\n            \t\"_id\": \"8\"\n            },\n            {\n            \t\"_id\": \"9\"\n            }]\n        }\n    }\n}"},"url":{"raw":"https://{{host}}/api/v1/entity/update","protocol":"https","host":["{{host}}"],"path":["api","v1","entity","update"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:55.000Z","uid":"17317391-f66ca950-6351-46ba-a636-7e758845035b"},{"name":"Unlink entities","id":"2cc9e883-c880-4a59-9a3f-fd05f98496e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"e1\": {\n      \"_type\": \"userpost\",\n      \"_id\": \"fca71ad1e1971b4d370d406d99e4b62cb3ec70da\"\n    },\n    \"e2\": {\n      \"_type\": \"auth_user\",\n      \"_id\": \"d60bb1137f1804f812c95b501cca4b2526fc0404\"\n    },\n    \"e1ToE2Relation\": \"likedBy\"\n  }"},"url":{"raw":"http://{{host}}/api/v1/entity/unlink","protocol":"http","host":["{{host}}"],"path":["api","v1","entity","unlink"]}},"response":[],"createdAt":"2023-10-13T08:25:05.000Z","updatedAt":"2023-10-13T08:32:57.000Z","uid":"17317391-2cc9e883-c880-4a59-9a3f-fd05f98496e8"}]}}