You can use Form-Data to do this.
Key: Operations (this is for the query / mutation )
{"query":"mutation updateAvatar($avatar:Upload!) {\n updateAvatar(avatar: $avatar)\n}"}
Key: map ( this is to map the files to your query / mutation )
{"0": ["variables.avatar"]}
Key: 0 ( upload your image/file etc )