Closed YashKumarVerma closed 4 years ago
I would like to work on this issue. Could you please elaborate a bit more?
the user would send a json object, in the format of
{
"name":"string",
"age":"number",
"gender": ["male", "female", "other"]
....
}
the function should parse this object and determine which type of data is to be inserted
@Brainshaker95
So you just want the function to return an object like this?
{
name: "string",
age: "number",
gender: "object",
}
Or what exactly do you mean when you say "type"? Sorry if this is obvious, but I'm not sure what you mean.
Write a function which accepts the schema (JSON body) sent by the user and determines which type of data to fill