Skip to main content
I am on step 3 of Display Books with Their Authors. I followed the steps exactly but am getting this error:

Step not yet complete... here's what's wrong:

The 'getBooksAndAuthor' method does not appear to contain the correct code. Ensure you copied the code entirely.

Can anyone assist?

 
2 件の回答
  1. 2018年8月2日 17:45
    public class with sharing Books4EveryoneHomeController {

    @AuraEnabled

    public static List<Book__c> getBooksAndAuthor(){

      return [SELECT Name, Description__c, Author__r.Name

        FROM Book__c];

    }

      

    }
0/9000