A Parse SDK class that defines a query that is used to query for PFObjects.
Questions tagged [pfquery]
514 questions
                    
                    9
                    
            votes
                
                1 answer
            
        PFQuery FindObjectsInBackground Returns 0
In my UIViewController I am trying to query my parse server, but I keep getting a return of 0 for it, though I know 100% that this class does have objects in it. Any thoughts?
 PFQuery *query = [PFQuery queryWithClassName:@"General"];
 int i;
 for…
         
    
    
        user717452
        
- 33
- 14
- 73
- 149
                    9
                    
            votes
                
                2 answers
            
        Sync between Parse and localDataStore
I am having trouble synchronizing my local data with Parse data when using ´enableLocalDataStore´. If I don't use local storage everything is fine, but I would like to minimize calls to Parse server. I understand that if I use ´saveEventually´ for…
         
    
    
        Trond Kristiansen
        
- 2,379
- 23
- 48
                    7
                    
            votes
                
                4 answers
            
        Parse.com querying User class (swift)
I encounter some strange problem when I try to query all users from the "User" class It dos not find any Users
var query:PFQuery=PFQuery(className: "User");
    query.findObjectsInBackgroundWithBlock {
        (objects: [AnyObject]!, error:…
         
    
    
        tim_yng
        
- 2,591
- 4
- 18
- 20
                    6
                    
            votes
                
                3 answers
            
        How can I retrieve objects in the order they were created?
I am using parse to store my objects.  When I go to retrieve objects, I get the objects in a random order it looks like.  I Believe Parse isn't taking seconds into account, just minutes, and if the objects are made in the same minute it gives me the…
         
    
    
        SirRupertIII
        
- 12,324
- 20
- 72
- 121
                    5
                    
            votes
                
                4 answers
            
        PFQueryTableViewController error
I'm following a tutorial online for creating a photo sharing app using Parse as a backend. I've run through the tutorial twice, creating the app from scratch both times, and still the same error occurs at the same spot. I've looked high and low for…
         
    
    
        Shay
        
- 51
- 4
                    4
                    
            votes
                
                1 answer
            
        Array index out of range on refresh
I have a Posts class that I am querying in a UITableViewController using Parse as my backend. 
In my viewDidAppear I call my loadData() function. And then I have a var refresher = UIRefreshControl() that is responsible for my refresh() function.…
         
    
    
        kareem
        
- 903
- 1
- 14
- 36
                    3
                    
            votes
                
                0 answers
            
        Swift - Parse - pointer column in whereKey condition
How can I use objectId of pointer column (manufacturerId) in my whereKey condition? The attempts bellow does not work, always return 0 rows.
If I use a column of type String (not pointer) on whereKey, the query returns the correct result (only rows…
         
    
    
        Rafael Rocha
        
- 31
- 1
                    3
                    
            votes
                
                2 answers
            
        indexPath.row not getting data from the array
I've created a PFQuery to get some strings from my parse server and the put this in a couple of arrays 
var packsAvailable = [""]
var packsImage = [""]
var packsDescription = [""]
If I print the value of the array in the for loop of the query I get…
         
    
    
        Pippo
        
- 1,439
- 1
- 18
- 35
                    3
                    
            votes
                
                1 answer
            
        Parse.com - Fetching relation using Swift
I have a user favorites class that's storing a user object and an event object, it get set when a user favorites an event.
I'd like to display the full list of a given user's favorites. So I query favorites class to get the event objects and then…
         
    
    
        jakeatwork
        
- 487
- 5
- 17
                    3
                    
            votes
                
                3 answers
            
        Parse storing local datastore objects to cache and clearing them?
I'm storing objects to the Parse local datastore in the standard manner:
[someObject pinInBackgroundWithName:someName];
Generally, this works fine. However, sometimes when I do a local query, i.e.
PFQuery *query = [SomeObject query]; 
[query…
         
    
    
        Smikey
        
- 8,106
- 3
- 46
- 74
                    3
                    
            votes
                
                1 answer
            
        Parse PFUser QueryWithPredicate Not working
I am trying to implement the user's search functionality and for which I am trying to Use NSPredicate but it's not working.
I am trying to use LIKE Query.
Here is the code I am using
NSPredicate *userPredicate = [NSPredicate…
         
    
    
        Malav Soni
        
- 2,739
- 1
- 23
- 52
                    3
                    
            votes
                
                1 answer
            
        swift parse how to save objects in local datastore and show them?
I've enabled local datastore in app delegate, I've did a query but how can i save that objects to view them if there's no internet ?
Here is my query :
query.findObjectsInBackgroundWithBlock {
         (objects, error) -> Void in
         if error…
         
    
    
        Salah
        
- 933
- 3
- 13
- 32
                    3
                    
            votes
                
                1 answer
            
        PFQueryTableViewController using objects in a PFObject's array
Sorry if this is an extremely simple and dumb question. I'm still really new to Parse.
Suppose I have a Schedule object, and a Schedule object can have a few ScheduleItem objects (not many). I decided to model this using arrays for relations, such…
         
    
    
        UberJason
        
- 3,063
- 2
- 25
- 50
                    3
                    
            votes
                
                1 answer
            
        Querying a Parse database to get the data from one single column within a Parse data Class
HelloI'm playing around with Parse, I've managed to create a cloud database with two classes/tables, Users and Posts, I'm able to register and login users and allow them to make posts to the database. I'm now trying to work out how to query the…
         
    
    
        Paul Alexander
        
- 2,686
- 4
- 33
- 69
                    3
                    
            votes
                
                1 answer
            
        Updating Parse iOS Local Datastore
I am creating a game for the iPhone, and the main screen is a list of games that the current user has in progress. I want to use the parse local datastore because my queries take a long time when there are a lot of games in progress. I have a…
         
    
    
        Jacob
        
- 2,338
- 2
- 22
- 39