This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum ROLES { | |
USER | |
USER_OWNER | |
} | |
type User { | |
id: ID! # This field is public | |
name: String @requires(role: USER) # This field is available to all registered users | |
privateField: String @requires(role: USER_OWNER) # From here I can just compare the object id with the context user id | |
nestedField: AnotherObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PUT YOUR PACKAGE HERE | |
// package com.mycompany.myproduct; | |
import android.content.Context; | |
import org.json.JSONArray; | |
import org.json.JSONObject; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; |