Skip to content

Instantly share code, notes, and snippets.

@SeloSlav
Created April 26, 2018 02:35
Show Gist options
  • Save SeloSlav/a23ebc1b27a5784096b1bf68433a8239 to your computer and use it in GitHub Desktop.
Save SeloSlav/a23ebc1b27a5784096b1bf68433a8239 to your computer and use it in GitHub Desktop.
Query Yeets from Parse
public class IndexModel : PageModel
{
public void OnGet()
{
Task<int> task = GetYeetsAsync();
}
private async Task<int> GetYeetsAsync()
{
var query = ParseObject.GetQuery("Yeet");
IEnumerable<ParseObject> results = await query.FindAsync();
var count = await query.CountAsync();
Debug.WriteLine("# Yeets: " + count);
throw new NotImplementedException();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment