• Nishtha Gupta 23
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
public with sharing class Contact {
@AuraEnabled
    public static list<Contact> contactlist(){
        List<Contact> con = new List<Contact>();
            con = [Select Id, Lastname from Contact limit 5];
        system.debug(con);
        return con;
    }
}