pub fn from_payload(payload: &[u8]) -> Result<GraphQLRequest, Error> {
        serde_json::from_slice(payload)
            .map_err(Error::bad_request)
            .map(GraphQLRequest)
    }
/// Parses a query string into a set of GraphQL request.
///
/// The provided payload must be a valid JSON data.
Parses a query string into a set of GraphQL request.
The provided payload must be a valid JSON data.
Parses a query string into a set of GraphQL request . The provided payload must be a valid JSON data .
pub fn from_payload(payload: &[u8]) -> Result<GraphQLRequest, Error> {
        serde_json::from_slice(payload)
            .map_err(Error::bad_request)
            .map(GraphQLRequest)
    }
pub fn from_payload ( payload : & [ u8 ] ) -> Result < GraphQLRequest , Error > { serde_json :: from_slice ( payload ) . map_err ( Error :: bad_request ) . map ( GraphQLRequest ) }
Parses a query string into a set of GraphQL request.
Parses a query string into a set of GraphQL request .
payload
&[u8]
payload
&[u8]