Skip to main content

userLanguageQuery method

Future<void> userLanguageQuery (String userId)

<p>This function perform graphQL query to check the user's language in the database. The function uses <code>gqlAuthQuery</code> method provided by Database Functions Services.</p> <p>params:</p> <ul> <li><code>userId</code> : user for which language need to be fetch.</li> </ul>

Implementation

Future\<void\> userLanguageQuery(String userId) async \{
try \{
await databaseFunctions.gqlAuthQuery(queries.newUserLanguage(userId));
\} catch (e) \{
print(e);
\}
\}