diff --git a/Joining Queries/mapping-document-relationships.md b/Joining Queries/mapping-document-relationships.md index 4a34382..e6b8176 100644 --- a/Joining Queries/mapping-document-relationships.md +++ b/Joining Queries/mapping-document-relationships.md @@ -1,17 +1,15 @@ # Mapping document relationships ``` -PUT /department +PUT /department/_mapping { - "mappings": { - "properties": { - "join_field": { - "type": "join", - "relations": { - "department": "employee" - } + "properties": { + "join_field": { + "type": "join", + "relations": { + "department": "employee" } } } } -``` \ No newline at end of file +```